2018-11-02 20:03:28 +08:00
|
|
|
CXXFLAGS = -std=c++14 -I.
|
2018-10-18 15:42:43 +08:00
|
|
|
LDFLAGS = -lm
|
|
|
|
|
2018-11-02 21:43:10 +08:00
|
|
|
gen_ft8: gen_ft8.o ft8/encode.o ft8/pack.o ft8/text.o ft8/pack_v2.o ft8/encode_v2.o common/wave.o
|
2018-10-18 15:42:43 +08:00
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^
|
2018-11-01 22:21:40 +08:00
|
|
|
|
|
|
|
.PHONY: run_tests
|
|
|
|
|
|
|
|
run_tests: test
|
|
|
|
@./test
|
|
|
|
|
2018-11-02 21:43:10 +08:00
|
|
|
test: test.o ft8/encode.o ft8/pack.o ft8/text.o ft8/pack_v2.o ft8/encode_v2.o ft8/unpack.o
|
2018-11-01 22:21:40 +08:00
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^
|