aboutsummaryrefslogtreecommitdiff
path: root/examples/put/Makefile
diff options
context:
space:
mode:
authorxavi <xavi@noreply.localhost>2023-11-20 16:47:53 +0100
committerxavi <xavi@noreply.localhost>2023-11-20 16:47:53 +0100
commitb94f76033f72d4eba629a6473a2b301dd7988f97 (patch)
treeadac8adce7dc9ce6c0f880c0439cd9f3b39527ab /examples/put/Makefile
parent8f1ad3124e9e063ca0ee7c2548c747b20de3529d (diff)
parentdc8b14d99028b9235aa7d7633906a979aa08e4f9 (diff)
downloadlibweb-b94f76033f72d4eba629a6473a2b301dd7988f97.tar.gz
Merge pull request 'Add support for HTTP `PUT`' (#3) from midokura-xavi/libweb:put into master
Reviewed-on: https://gitea.privatedns.org/xavi/libweb/pulls/3
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)