aboutsummaryrefslogtreecommitdiff
path: root/examples/put/Makefile
diff options
context:
space:
mode:
authorXavier Del Campo <xavier.delcampo@midokura.com>2023-11-17 16:34:45 +0100
committerXavier Del Campo <xavier.delcampo@midokura.com>2023-11-20 16:34:24 +0100
commitdc8b14d99028b9235aa7d7633906a979aa08e4f9 (patch)
treeadac8adce7dc9ce6c0f880c0439cd9f3b39527ab /examples/put/Makefile
parent1750bbd7ec7277375c0ccd815cd2aed541e7e862 (diff)
Add PUT server example
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)