4 changed files with 26 additions and 23 deletions
@ -1,18 +1,21 @@ |
|||||
HERE:=$(dir $(lastword $(MAKEFILE_LIST))) |
HERE:=$(dir $(lastword $(MAKEFILE_LIST))) |
||||
-include $(HERE)../Makefile.conf |
include $(HERE)../Makefile.conf |
||||
|
|
||||
TARGET ?= main_blink |
# do not create a static lib
|
||||
|
TARGET_LIB = |
||||
DEBUG ?= 0 |
DEBUG ?= 0 |
||||
|
|
||||
LIBDIZZY_DIR ?= ../src/ |
LIBDIZZY_DIR ?= ../src/ |
||||
CXXFLAGS += -I$(LIBDIZZY_DIR) |
CXXFLAGS += -I$(LIBDIZZY_DIR) |
||||
LDFLAGS += -L$(LIBDIZZY_DIR)build/ |
LDFLAGS += -L$(LIBDIZZY_DIR) |
||||
LDFLAGS += -ldizzy |
LDFLAGS += -ldizzy |
||||
|
|
||||
ALL_SRC = $(wildcard *.cc) |
SRC_EXCLUDED := \
|
||||
TARGET_SRC = $(TARGET).cc |
main_minimal.c \
|
||||
MODULES_SRC = $(filter-out main_%,$(ALL_SRC)) |
main_adc.cc \
|
||||
CXX_SRC = $(MODULES_SRC) $(TARGET_SRC) |
main_memtest1.cc \
|
||||
|
test_bla.c |
||||
|
|
||||
CXX_SOURCES = $(CXX_SRC) |
SOURCES := $(wildcard *) |
||||
|
SOURCES := $(filter-out $(SRC_EXCLUDED), $(SOURCES)) |
||||
include $(LIBDAISY_DIR)/core/Makefile |
include $(LIBDAISY_DIR)/core/Makefile |
||||
|
@ -1,7 +1,5 @@ |
|||||
HERE:=$(dir $(lastword $(MAKEFILE_LIST))) |
HERE:=$(dir $(lastword $(MAKEFILE_LIST))) |
||||
-include $(HERE)../Makefile.conf |
include $(HERE)../Makefile.conf |
||||
|
|
||||
ALL_SRC = $(wildcard *.cc) |
|
||||
CXX_SOURCES = $(ALL_SRC) |
|
||||
|
|
||||
|
SOURCES = $(wildcard *) |
||||
include $(LIBDAISY_DIR)/core/Makefile |
include $(LIBDAISY_DIR)/core/Makefile |
||||
|
Loading…
Reference in new issue