diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-08-06 16:43:57 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-08-09 00:32:13 +0200 |
| commit | 4ee88984fcca86c5b0c9c4bbb7e9148c7d2fe9db (patch) | |
| tree | aa4ab670afd116e419a9661bd266e7c3d0b56dc4 /examples/hello/Makefile | |
| parent | 83b8b8c2b3622ff7dfc46adf25b6723f1abfb0b5 (diff) | |
| download | libweb-4ee88984fcca86c5b0c9c4bbb7e9148c7d2fe9db.tar.gz | |
Add hello world example
Diffstat (limited to 'examples/hello/Makefile')
| -rw-r--r-- | examples/hello/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/hello/Makefile b/examples/hello/Makefile new file mode 100644 index 0000000..217bccb --- /dev/null +++ b/examples/hello/Makefile @@ -0,0 +1,26 @@ +.POSIX: + +PROJECT = hello +DEPS = \ + main.o +SLWEB = ../../libslweb.a +DYNSTR = ../../dynstr/libdynstr.a +CFLAGS = -I ../../include -I ../../dynstr/include +SLWEB_FLAGS = -L ../../ -l slweb +DYNSTR_FLAGS = -L ../../dynstr -l dynstr + +all: $(PROJECT) + +clean: + rm -f $(DEPS) + +FORCE: + +$(PROJECT): $(DEPS) $(SLWEB) $(DYNSTR) + $(CC) $(LDFLAGS) $(DEPS) $(SLWEB_FLAGS) $(DYNSTR_FLAGS) -o $@ + +$(SLWEB): FORCE + +cd ../../ && $(MAKE) + +$(DYNSTR): FORCE + +cd ../../dynstr && $(MAKE) |
