summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-10-26 18:40:18 +0200
committerportix <portix@gmx.net>2011-10-26 18:40:18 +0200
commit95927a5d91069673b42264ea04b5732593a379c6 (patch)
treee25845ae5f450bc7a4009e546ddf7b8200720609 /src/Makefile
parentc7beaefa8343566a1962950ac7cfb45113330b30 (diff)
downloaddwb-95927a5d91069673b42264ea04b5732593a379c6.zip
Checking for system datadirs and fixing a possible memory corruption in html.c, fixes #54
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 9b27983c..fd11f530 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,5 +1,6 @@
include ../config.mk
+DEPS=$(patsubst %.o, %.d, $(OBJ))
all: $(TARGET)
$(TARGET): $(OBJ)
@@ -9,14 +10,17 @@ $(TARGET): $(OBJ)
-include $(OBJ:.o=.d)
-include $(DOBJ:.do=.dd)
-%.o: %.c
+%.o: %.c %.h
@echo "${CC} $<"
@$(CC) -c -o $@ $< $(CFLAGS)
-#@$(CC) $(FLAGS) -MM $*.c > $*.d
-
debug: $(DTARGET)
+#%.d: %.c %.h
+# @echo "$(CC) -MM $@"
+# @$(CC) $(CFLAGS) -MM $< -o $@
+#
+
%.do: %.c
@echo "${CC} $<"
@$(CC) -c -o $@ $< $(DCFLAGS)