summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-02-22 13:32:28 +0100
committerportix <portix@gmx.net>2012-02-22 13:32:28 +0100
commit2a04bfb9522a97deb81fc3dfd88402c5c69a2c88 (patch)
treef87a4fbc625ed5d63d7dbad9828e2ff4194caf1e /src/Makefile
parent45aa7897f1602d50e5b03f0f486b14848603a6d1 (diff)
downloaddwb-2a04bfb9522a97deb81fc3dfd88402c5c69a2c88.zip
Move options-target to top-level Makefile
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/Makefile b/src/Makefile
index cddd7468..77739a53 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,15 +1,8 @@
include ../config.mk
DEPS=$(patsubst %.o, %.d, $(OBJ))
-all: $(TARGET)
-
-options:
- @echo Build options:
- @echo CC = $(CC)
- @echo CFLAGS = $(CFLAGS)
- @echo LDFLAGS = $(LDFLAGS)
- @echo CPPFLAGS = $(CPPFLAGS)
+all: $(TARGET)
$(TARGET): $(OBJ)
@echo "$(CC) $@"
@@ -18,12 +11,10 @@ $(TARGET): $(OBJ)
-include $(OBJ:.o=.d)
-include $(DOBJ:.do=.dd)
-%.o: %.c %.h config.h dwb.h
+%.o: %.c %.h config.h dwb.h tlds.h
@echo "${CC} $<"
@$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
-$(SOURCE) $(HDR): options
-
debug: $(DTARGET)
deps.d: %.c %.h tlds.h
@@ -39,7 +30,7 @@ $(DTARGET): $(DOBJ)
@echo "$(CC) $@"
@$(CC) $(DOBJ) -o $(DTARGET) $(LDFLAGS)
-tlds.h: tlds.in
+tlds.h: tlds.in
@echo gen tlds.h
@echo "#ifndef TLDS_H" > $@
@echo "#define TLDS_H" >> $@
@@ -49,11 +40,10 @@ tlds.h: tlds.in
@echo "};" >> $@
@echo "#endif" >> $@
-domain.o: tlds.h
+domain.o: tlds.h
domain.do: tlds.h
-
dependencies: $(DEPS)
deps:
@@ -79,4 +69,4 @@ clean:
$(RM) *.o *.do $(TARGET) $(DTARGET) *.d
$(RM) tlds.h
-.PHONY: clean all cgdb deps options
+.PHONY: clean all cgdb deps