diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-03-18 14:57:14 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-03-18 14:57:14 +0100 |
commit | 7352d1932e15b6da85774853e6953c0b390fd75b (patch) | |
tree | fa193c3a2a85e2628645598d8f48a77d0f4604eb /Makefile | |
parent | Add preliminary parse code. (diff) | |
download | texttv-7352d1932e15b6da85774853e6953c0b390fd75b.tar.gz texttv-7352d1932e15b6da85774853e6953c0b390fd75b.tar.xz |
Working.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8f867c9 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +CFLAGS := -fPIC $(shell guile-config compile) \ + $(shell pkg-config --cflags gumbo) \ + -I/usr/local/include/ -Wall +LFLAGS := $(shell guile-config link) \ + $(shell pkg-config --libs gumbo) \ + -L/usr/local/lib -lcjson +CC := gcc + +.PHONY: all clean + +all: libguile-json.so libguile-html.so + +%: %.oo + $(CC) -o $@ $< $(LFLAGS) + +%.x: %.c + guile-snarf -o $@ $< $(CFLAGS) + +libguile-%.so: %.oo + $(CC) -shared -o $@ $< $(LFLAGS) + +%.oo: %.c %.x + $(CC) -c -o $@ $(CFLAGS) $< + +clean: + -rm *.oo + -rm libguile-*.so |