summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 23eb91e..739c91e 100644
--- a/Makefile
+++ b/Makefile
@@ -11,10 +11,15 @@ endif
all:
@test -d $(BUILDDIR) || mkdir $(BUILDDIR)
@make -C $(BUILDDIR) -f ../Makefile REALBUILD=yes
+clean:
+ @test -d $(BUILDDIR) || mkdir $(BUILDDIR)
+ @make -C $(BUILDDIR) -f ../Makefile clean REALBUILD=yes
else
# The `real' makefile part.
+CFLAGS += -Wall -W
+
ifdef RELEASE
ifndef VERSION
VERSION := $(RELEASE)
@@ -34,7 +39,8 @@ endif
SRC := ../
-MODULES := main malloc error help licence version
+MODULES := main malloc ustring error help licence version misc
+MODULES += input
OBJECTS := $(addsuffix .o,$(MODULES))
DEPS := $(addsuffix .d,$(MODULES))
@@ -48,6 +54,9 @@ buttress: $(OBJECTS)
version.o: FORCE
$(CC) $(VDEF) -MD -c $(SRC)version.c
+clean::
+ rm -f *.o buttress core
+
FORCE: # phony target to force version.o to be rebuilt every time
-include $(DEPS)