diff --git a/Makefile b/Makefile index 19b5242..b8f7463 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +include ../config.mk SRCDIR := . OBJS := real.o cpx.o ringbuf.o equalizer.o interpolation.o agc.o nco.o statistics.o symbol.o synchronization.o Frame.o @@ -7,22 +8,16 @@ LIB := $(BUILD_DIR)/libradio.a INCLUDES := . .. DEFINES := radio_float_t=float fir_float_t=float -CCFLAGS := -g -O2 $(addprefix -D, $(DEFINES)) $(addprefix -I, $(INCLUDES)) -CXXFLAGS := -g -O2 $(addprefix -D, $(DEFINES)) $(addprefix -I, $(INCLUDES)) -std=c++11 - all : $(LIB) $(LIB) : $(OBJS) $(AR) -r $(LIB) $(OBJS) -%.o : $(addprefix $(SRCDIR)/, %.c) - $(CC) $(CCFLAGS) -c $< - -%.o : $(addprefix $(SRCDIR)/, %.cpp) - $(CXX) $(CXXFLAGS) -c $< - clean: rm -f *.o + rm -f *.a .PHONY: clean +include ../compile.mk +