Commit 46003122 authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Create lib directories automagicly

parent a6a63d07
......@@ -100,15 +100,19 @@ release_console: $(CONSOLE_REL_TAR)
release_controller: $(CONTROLLER_REL_TAR)
lib:
@echo MKDIR $@
@mkdir lib
common/lib:
@echo MKDIR $@
@mkdir common/lib
controller/lib:
@echo MKDIR $@
@mkdir controller/lib
console/console/lib:
@echo MKDIR $@
@mkdir console/console/lib
DIR := .
......@@ -128,31 +132,32 @@ include $(DIR)/$1/build.mk
DIR := $(DIR)
endef
TARGETS:=
$(eval $(call SUBDIR,common))
common: $(TARGETS)
$(TARGETS): common/lib
TARGETS:=
$(eval $(call SUBDIR,controller))
controller: $(TARGETS)
$(TARGETS): controller/lib
TARGETS:=
$(eval $(call SUBDIR,console))
console: $(TARGETS)
$(TARGETS): console/console/lib
CFLAGS := -Icommon -Icommon/include -Icontroller -Iconsole/console -Iinclude
LDFLAGS := -Lcommon/lib -Lcontroller/lib -Lconsole/console/lib -Llib
VPATH += common/lib controller/lib console/console/lib lib
target_dirs: lib common/lib console/console/lib controller/lib
SRCS_TMP=$(SRCS:.il=.il.d)
-include $(SRCS_TMP:.c=.d) $(patsubst %.c,.libs/%.d,$(SRCS_TMP))
-include $(SRCS_TMP:.c=.d) $(patsubst %.c,.libs/%.d,$(SRCS_TMP)) target_dirs
SRCS_IL = $(filter %.il,$(SRCS))
$(SRCS_IL): $(IL2C)
$(SRCS_IL): $(IL2C) target_dirs
subdirs_CLEAN:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment