aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-02-01 16:40:28 +0100
committerKarel Kočí <karel.koci@nic.cz>2017-02-01 16:40:28 +0100
commitf5a6db59df4d296c4436c450c66a6edcf331d169 (patch)
tree408b73ce465eab091bde7aa66cc7f0966c3b02a8
parentca9fbd420e3249ba865563f799a3af8be2eb48cf (diff)
downloadturris-lcd-example-f5a6db59df4d296c4436c450c66a6edcf331d169.tar.gz
turris-lcd-example-f5a6db59df4d296c4436c450c66a6edcf331d169.tar.bz2
turris-lcd-example-f5a6db59df4d296c4436c450c66a6edcf331d169.zip
Don't include config.h
It's not used and don't have to be generated
-rw-r--r--Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 821195b..4b2e274 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ ifeq ($(DEBUG),yes)
CFLAGS += -ggdb -DDEBUG
endif
CFLAGS += -Wall
-CFLAGS += -Iliblcd -include $(O)/build/config.h
+CFLAGS += -Iliblcd
# Apply CPREFIX
CXX:=$(CPREFIX)$(CXX)
@@ -76,16 +76,11 @@ $(O)/turris-lcd: $(OBJ) liblcd/libliquidcrystali2c.a
@echo " LD $@"
$(Q)$(CXX) $(LDFLAGS) $^ -o $@
-$(OBJ): $(O)/build/%.o: src/%.cpp $(O)/build/config.h
+$(OBJ): $(O)/build/%.o: src/%.cpp
@mkdir -p "$(@D)"
@echo " CXX $@"
$(Q)$(CXX) -c $(CFLAGS) $< -o $@
-$(O)/build/config.h: $(O)/.config
- @mkdir -p "$(@D)"
- @echo " CONF $@"
- $(Q)$(O)/configure --op-h > $@
-
liblcd/libliquidcrystali2c.a:
$(Q)$(MAKE) -C liblcd static
endif