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

Create lib dirs if needed

parent 793ddd0f
...@@ -99,6 +99,18 @@ release: $(CONSOLE_REL_TAR) $(CONTROLLER_REL_TAR) ...@@ -99,6 +99,18 @@ release: $(CONSOLE_REL_TAR) $(CONTROLLER_REL_TAR)
release_console: $(CONSOLE_REL_TAR) release_console: $(CONSOLE_REL_TAR)
release_controller: $(CONTROLLER_REL_TAR) release_controller: $(CONTROLLER_REL_TAR)
lib:
@mkdir lib
common/lib:
@mkdir common/lib
controller/lib:
@mkdir controller/lib
console/console/lib:
@mkdir console/console/lib
DIR := . DIR := .
SRCS := SRCS :=
TARGETS := TARGETS :=
...@@ -119,14 +131,17 @@ endef ...@@ -119,14 +131,17 @@ endef
TARGETS:= TARGETS:=
$(eval $(call SUBDIR,common)) $(eval $(call SUBDIR,common))
common: $(TARGETS) common: $(TARGETS)
$(TARGETS): common/lib
TARGETS:= TARGETS:=
$(eval $(call SUBDIR,controller)) $(eval $(call SUBDIR,controller))
controller: $(TARGETS) controller: $(TARGETS)
$(TARGETS): controller/lib
TARGETS:= TARGETS:=
$(eval $(call SUBDIR,console)) $(eval $(call SUBDIR,console))
console: $(TARGETS) console: $(TARGETS)
$(TARGETS): console/console/lib
CFLAGS := -Icommon -Icommon/include -Icontroller -Iconsole/console -Iinclude CFLAGS := -Icommon -Icommon/include -Icontroller -Iconsole/console -Iinclude
LDFLAGS := -Lcommon/lib -Lcontroller/lib -Lconsole/console/lib -Llib LDFLAGS := -Lcommon/lib -Lcontroller/lib -Lconsole/console/lib -Llib
......
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