summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <hg@njw.me.uk>2011-07-15 22:30:48 +0100
committerNick White <hg@njw.me.uk>2011-07-15 22:30:48 +0100
commitd2be24f0b636d93e1873e27207e841150e9f54bf (patch)
treea3c56a65876dff977e4bc26af777494f721a126f /Makefile
Basic http working
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..35d35b2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+SRC = getgbook.c
+OBJ = $(SRC:.c=.o)
+
+all: getgbook
+
+.c.o:
+ @echo CC $<
+ @$(CC) -c -g $(CFLAGS) $<
+
+getgbook: $(OBJ)
+ @echo LD $@
+ @$(CC) -o $@ $(OBJ) $(LDFLAGS)
+
+clean:
+ rm -f -- getgbook $(OBJ)
+
+.PHONY: all clean