diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-09-30 23:50:33 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-10-02 15:52:14 +0200 |
| commit | a0f5f7509bb9040752fa61fe0fdb447608e22b1c (patch) | |
| tree | 53337bce28ed75f26953c5969af6bc76d8841f2b /examples/form/Makefile | |
| parent | bba0b62f4e9e17927b9a2cda51dd5a4aa1b1f14e (diff) | |
| download | libweb-a0f5f7509bb9040752fa61fe0fdb447608e22b1c.tar.gz | |
Implement form interface
This new interface allows library users to parse
application/x-www-form-urlencoded data conveniently.
Diffstat (limited to 'examples/form/Makefile')
| -rw-r--r-- | examples/form/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
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) |
