diff options
author | Minteck <contact@minteck.org> | 2022-08-10 10:38:44 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-08-10 10:38:44 +0200 |
commit | c6dbf0450566c40efc4a26f4f0717452b6ef95cd (patch) | |
tree | b4be2d508223820d0a77d5a3e35e82684da3b6ec /node_modules/ua-parser/cpp/Makefile | |
download | hornchat-c6dbf0450566c40efc4a26f4f0717452b6ef95cd.tar.gz hornchat-c6dbf0450566c40efc4a26f4f0717452b6ef95cd.tar.bz2 hornchat-c6dbf0450566c40efc4a26f4f0717452b6ef95cd.zip |
Diffstat (limited to 'node_modules/ua-parser/cpp/Makefile')
-rw-r--r-- | node_modules/ua-parser/cpp/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/node_modules/ua-parser/cpp/Makefile b/node_modules/ua-parser/cpp/Makefile new file mode 100644 index 0000000..99a51db --- /dev/null +++ b/node_modules/ua-parser/cpp/Makefile @@ -0,0 +1,29 @@ +CC=g++ +LDFLAGS=-lboost_regex -lboost_system -lyaml-cpp -lglog +CFLAGS=-std=c++0x -Wall -Werror -g -O3 + +# wildcard object build target +%.o: %.cpp + $(CC) -c $(CFLAGS) $*.cpp -o $*.o $(LDFLAGS) + @$(CC) -MM $(CFLAGS) $*.cpp $(LDFLAGS) > $*.d + +uaparser_cpp: libuaparser_cpp.a + +libuaparser_cpp.a: UaParser.o + ar rcs $@ $^ + +UaParserTest: libuaparser_cpp.a UaParserTest.o + $(CC) $(CFLAGS) $^ -o $@ libuaparser_cpp.a $(LDFLAGS) -lgtest -lpthread + +test: UaParserTest + ./UaParserTest + +# clean everything generated +clean: + find . -name "*.o" -exec rm -rf {} \; # clean up object files + find . -name "*.d" -exec rm -rf {} \; # clean up dependencies + rm -f UaParserTest *.a + +# automatically include the generated *.d dependency make targets +# that are created from the wildcard %.o build target above +-include $(OBJS:.o=.d) |