From a0f5f7509bb9040752fa61fe0fdb447608e22b1c Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 30 Sep 2025 23:50:33 +0200 Subject: Implement form interface This new interface allows library users to parse application/x-www-form-urlencoded data conveniently. --- examples/form/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 examples/form/Makefile (limited to 'examples/form/Makefile') diff --git a/examples/form/Makefile b/examples/form/Makefile new file mode 100644 index 0000000..a965d76 --- /dev/null +++ b/examples/form/Makefile @@ -0,0 +1,29 @@ +.POSIX: + +PROJECT = form +DEPS = \ + main.o +LIBWEB = ../../libweb.a +DYNSTR = ../../dynstr/libdynstr.a +CFLAGS = -I ../../include -I ../../dynstr/include +LIBWEB_FLAGS = -L ../../ -l web +DYNSTR_FLAGS = -L ../../dynstr -l dynstr + +all: $(PROJECT) + +clean: + rm -f $(DEPS) + +distclean: clean + rm -f $(PROJECT) + +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