aboutsummaryrefslogtreecommitdiff
path: root/examples/put/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/put/Makefile')
-rw-r--r--examples/put/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/put/Makefile b/examples/put/Makefile
new file mode 100644
index 0000000..972208b
--- /dev/null
+++ b/examples/put/Makefile
@@ -0,0 +1,26 @@
+.POSIX:
+
+PROJECT = put
+DEPS = \
+ main.o
+LIBWEB = ../../libweb.a
+DYNSTR = ../../dynstr/libdynstr.a
+CFLAGS = -I ../../include -I ../../dynstr/include -g
+LIBWEB_FLAGS = -L ../../ -l web
+DYNSTR_FLAGS = -L ../../dynstr -l dynstr
+
+all: $(PROJECT)
+
+clean:
+ rm -f $(DEPS)
+
+FORCE:
+
+$(PROJECT): $(DEPS) $(LIBWEB) $(DYNSTR)
+ $(CC) $(LDFLAGS) $(DEPS) $(LIBWEB_FLAGS) $(DYNSTR_FLAGS) -o $@
+
+$(LIBWEB): FORCE
+ +cd ../../ && $(MAKE)
+
+$(DYNSTR): FORCE
+ +cd ../../dynstr && $(MAKE)