summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-10-15 14:14:37 +1030
committerdaniel-Jones <daniel@danieljon.es>2018-10-15 14:14:37 +1030
commite234e58583ada8a98b23b9116064c345824891cc (patch)
treed1e19c8d9c59344eb5f589773ca6c86aade27b37 /makefile
downloadwebsitegen-e234e58583ada8a98b23b9116064c345824891cc.tar.gz
websitegen-e234e58583ada8a98b23b9116064c345824891cc.zip
first commit, very little here except the start of config.h and the inclusion of replace.c/h
Diffstat (limited to 'makefile')
-rw-r--r--makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..c218887
--- /dev/null
+++ b/makefile
@@ -0,0 +1,25 @@
+TARGET = websitegen
+LIBS =
+CC = gcc
+CFLAGS = -g -Wall
+
+.PHONY: default all clean
+
+default: $(TARGET)
+all: default
+
+OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
+HEADERS = $(wildcard *.h)
+
+%.o: %.c $(HEADERS)
+ $(CC) $(CFLAGS) -c $< -o $@
+
+.PRECIOUS: $(TARGET) $(OBJECTS)
+
+$(TARGET): $(OBJECTS)
+ $(CC) $(OBJECTS) -Wall $(LIBS) -o $@
+
+clean:
+ -rm -f *.o
+ -rm -f $(TARGET)
+