aboutsummaryrefslogtreecommitdiff
path: root/examples/html/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/html/Makefile')
-rw-r--r--examples/html/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/html/Makefile b/examples/html/Makefile
new file mode 100644
index 0000000..77d94f8
--- /dev/null
+++ b/examples/html/Makefile
@@ -0,0 +1,26 @@
+.POSIX:
+
+PROJECT = html
+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)