Stefan Schuermans commited on 2017-05-20 17:49:12
Showing 1 changed files, with 19 additions and 17 deletions.
| ... | ... |
@@ -1,20 +1,20 @@ |
| 1 |
-CFGS=$(wildcard config/*.cfg.sh) |
|
| 2 |
-SRCS=$(wildcard common/*.cpp) $(wildcard linux/*.cpp) |
|
| 3 |
-TARGET=Blinker |
|
| 4 |
- |
|
| 5 |
-CPP=g++ |
|
| 6 |
-CONFIG= |
|
| 7 |
-DEFINE=-DBLINKER_CONFIG="\"$(CONFIG)\"" |
|
| 8 |
-INCLUDE=-Icommon -Ilinux |
|
| 9 |
-CFLAGS=-Wall -Wextra -Werror -O2 -g2 |
|
| 10 |
-LDFLAGS= |
|
| 11 |
-LIBS=-lBlinkenLib |
|
| 12 |
- |
|
| 13 |
-CFGS_BASE=$(patsubst %.cfg.sh,%,$(CFGS)) |
|
| 14 |
-CFGS_MK=$(addsuffix .cfg.mk,$(CFGS_BASE)) |
|
| 15 |
-SRCS_BASE=$(patsubst %.cpp,%,$(SRCS)) |
|
| 16 |
-DEPS=$(addsuffix .d,$(SRCS_BASE)) |
|
| 17 |
-OBJS=$(addsuffix .o,$(SRCS_BASE)) |
|
| 1 |
+CFGS := $(wildcard config/*.cfg.sh) |
|
| 2 |
+SRCS := $(wildcard common/*.cpp) $(wildcard linux/*.cpp) |
|
| 3 |
+TARGET := Blinker |
|
| 4 |
+ |
|
| 5 |
+CPP := g++ |
|
| 6 |
+CONFIG := |
|
| 7 |
+DEFINE := |
|
| 8 |
+INCLUDE := -Icommon -Ilinux |
|
| 9 |
+CFLAGS := -Wall -Wextra -Werror -O2 -g2 |
|
| 10 |
+LDFLAGS := |
|
| 11 |
+LIBS := -lBlinkenLib |
|
| 12 |
+ |
|
| 13 |
+CFGS_BASE := $(patsubst %.cfg.sh,%,$(CFGS)) |
|
| 14 |
+CFGS_MK := $(addsuffix .cfg.mk,$(CFGS_BASE)) |
|
| 15 |
+SRCS_BASE := $(patsubst %.cpp,%,$(SRCS)) |
|
| 16 |
+DEPS := $(addsuffix .d,$(SRCS_BASE)) |
|
| 17 |
+OBJS := $(addsuffix .o,$(SRCS_BASE)) |
|
| 18 | 18 |
|
| 19 | 19 |
.PHONY: all clean distclean |
| 20 | 20 |
.SUFFIXES: |
| ... | ... |
@@ -29,6 +29,8 @@ ifneq ($(MAKECMDGOALS),clean) |
| 29 | 29 |
endif |
| 30 | 30 |
endif |
| 31 | 31 |
|
| 32 |
+DEFINE += -DBLINKER_CONFIG="\"$(CONFIG)\"" |
|
| 33 |
+ |
|
| 32 | 34 |
config.mk: $(CFGS_MK) |
| 33 | 35 |
cat /dev/null $^ >$@ |
| 34 | 36 |
|
| 35 | 37 |