galmon/Makefile

33 lines
1.1 KiB
Makefile
Raw Normal View History

2019-08-02 03:13:10 -06:00
CXXFLAGS:= -std=gnu++17 -Wall -O3 -MMD -MP -ggdb -fno-omit-frame-pointer -Iext/fmt-5.2.1/include/ -Iext/powerblog/ext/simplesocket -Iext/powerblog/ext/
2019-07-22 14:31:55 -06:00
2019-08-11 02:43:29 -06:00
PROGRAMS = navparse ubxtool navnexus navrecv
2019-07-22 14:31:55 -06:00
all: $(PROGRAMS)
-include *.d
clean:
rm -f *~ *.o *.d ext/*/*.o $(PROGRAMS)
2019-08-02 03:13:10 -06:00
H2OPP=ext/powerblog/h2o-pp.o
SIMPLESOCKETS=ext/powerblog/ext/simplesocket/swrappers.o ext/powerblog/ext/simplesocket/sclasses.o ext/powerblog/ext/simplesocket/comboaddress.o
2019-07-22 14:31:55 -06:00
2019-08-12 07:54:16 -06:00
navparse: navparse.o ext/fmt-5.2.1/src/format.o $(H2OPP) $(SIMPLESOCKETS) minicurl.o ubx.o bits.o navmon.pb.o gps.o
g++ -std=gnu++17 $^ -o $@ -pthread -L/usr/local/lib -lh2o-evloop -lssl -lcrypto -lz -lcurl -lprotobuf # -lwslay
2019-08-09 07:58:52 -06:00
2019-08-11 02:43:29 -06:00
navnexus: navnexus.o ext/fmt-5.2.1/src/format.o $(SIMPLESOCKETS) ubx.o bits.o navmon.pb.o storage.o
g++ -std=gnu++17 $^ -o $@ -pthread -lprotobuf
navrecv: navrecv.o ext/fmt-5.2.1/src/format.o $(SIMPLESOCKETS) navmon.pb.o storage.o
g++ -std=gnu++17 $^ -o $@ -pthread -lprotobuf
2019-08-09 16:54:35 -06:00
2019-08-09 07:58:52 -06:00
navmon.pb.h: navmon.proto
protoc --cpp_out=./ navmon.proto
2019-08-12 07:54:16 -06:00
ubxtool: ubxtool.o ubx.o bits.o ext/fmt-5.2.1/src/format.o galileo.o navmon.pb.o gps.o
2019-08-09 07:58:52 -06:00
g++ -std=gnu++17 $^ -o $@ -lprotobuf
2019-08-06 04:57:06 -06:00