summary refs log tree commit diff stats
path: root/makefile
diff options
context:
space:
mode:
authorkaa <kaa@laptosh.my.domain>2023-06-23 11:56:56 -0700
committerkaa <kaa@laptosh.my.domain>2023-06-23 11:56:56 -0700
commit09819bcd940492c8ccc48284880f8bc652a2845a (patch)
tree89f5425d6907b111afd74142866440fba9bced0c /makefile
downloadhyp-09819bcd940492c8ccc48284880f8bc652a2845a.tar.gz
Initial. 1.0
Diffstat (limited to 'makefile')
-rw-r--r--makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..f58cf19
--- /dev/null
+++ b/makefile
@@ -0,0 +1,24 @@
+CC = cc
+#CC = tcc
+CFLAGS = -Wall -I/usr/local/include
+CFLAGS += -std=c89
+LDFLAGS = -L/usr/local/lib -lhyphen
+LDFLAGS += -static
+out = hyp
+bindir = /home/kaa/bin
+
+all: $(out)
+
+.c:
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+clean:
+	rm -f $(out)
+
+install: all
+	cp hyp $(bindir)/hyp
+	cp unhyp $(bindir)/unhyp
+
+uninstall:
+	rm -f $(bindir)/hyp
+	rm -f $(bindir)/unhyp