add makefile for float_fix and comlog tools
This commit is contained in:
parent
be8a411f9c
commit
760893e448
2
scripts/.gitignore
vendored
Normal file
2
scripts/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/comlog
|
||||||
|
/float_fix
|
18
scripts/Makefile
Normal file
18
scripts/Makefile
Normal 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)
|
Loading…
Reference in New Issue
Block a user