From dc8b14d99028b9235aa7d7633906a979aa08e4f9 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Date: Fri, 17 Nov 2023 16:34:45 +0100 Subject: Add PUT server example --- examples/put/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 examples/put/Makefile (limited to 'examples/put/Makefile') 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) -- cgit v1.2.3