1
0
Fork 0

add makefile for float_fix and comlog tools

This commit is contained in:
Howard Mao 2016-02-29 11:24:53 -08:00
parent be8a411f9c
commit 760893e448
2 changed files with 20 additions and 0 deletions

2
scripts/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/comlog
/float_fix

18
scripts/Makefile Normal file
View File

@ -0,0 +1,18 @@
base_dir = $(abspath ..)
CXXSRCS := comlog float_fix
CXXFLAGS := $(CXXFLAGS) -std=c++11 -Wall
OBJS := $(addsuffix .o,$(CXXSRCS))
PROGRAMS := $(CXXSRCS)
all: $(PROGRAMS)
%: %.o
$(CXX) $< $(LDFLAGS) -o $@
%.o: $(base_dir)/csrc/%.cc
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(PROGRAMS)