From 0ea782c2b6466f4cee8854c12ac0e6fc4631d68e Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 20 Jul 2014 11:27:06 +0000 Subject: [PATCH] - enhanced build git-svn-id: http://moon:8086/svn/software/trunk/libsrc/radio@13 b431acfa-c32f-4a4a-93f1-934dc6c82436 --- Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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 +