Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
PLATFORM=platform_generic
CFLAGS=-Wall -I$(PLATFORM) -g3 -ffunction-sections -fdata-sections -Iconsole_commands --std=c++0x #-DCONSOLE_COMMANDS
LIB_C_SOURCES := $(filter-out main.c, $(wildcard *.c)) $(wildcard $(PLATFORM)/*.c)
LIB_SOURCES := $(patsubst %.c, %.o, $(LIB_C_SOURCES))
LIB_INCLUDES := $(wildcard *.h) $(wildcard $(PLATFORM)/*.h)
MAIN_SOURCES := main.c #console_commands/command.c console_commands/console.c
EXEC=ad9361_generic
all: $(SOURCES) $(EXEC)
$(EXEC): libad9361.a $(MAIN_SOURCES)
$(CXX) $(CFLAGS) $(LDFLAGS) $(MAIN_SOURCES) -o $@ -I$(PLATFORM) -lad9361 -L. -Wl,--gc-sections
libad9361.a: $(LIB_SOURCES)
$(AR) rvs libad9361.a $+
ad9361_api.o: ad9361_api.c ad9361.h common.h ad9361_api.h util.h \
$(PLATFORM)/platform.h util.h
ad9361.o: ad9361.c ad9361.h common.h $(PLATFORM)/platform.h util.h ad9361.h \
common.h util.h
util.o: util.c util.h ad9361.h common.h
$(PLATFORM)/platform.o: $(PLATFORM)/platform.c util.h ad9361.h common.h \
$(PLATFORM)/parameters.h
.c.o:
$(CXX) -c $(CFLAGS) $< -o $@
clean:
rm -rf *.a *.o */*.o
rm -f $(EXEC)
4bec88b59This file is pinned to the selected release. Download the original to open it in your design tool.