aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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