summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b56b19b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+CC = cc
+CFLAGS = -static -O2 -Wall -Wextra
+LIBS = -lgemtext
+OUT = gmitohtml
+
+PREFIX = /usr
+
+OBJS = gmitohtml.o
+MANPAGES = gmitohtml.1
+
+all: $(OUT)
+
+$(OUT): $(OBJS)
+ $(CC) $(CFLAGS) -o $(OUT) $(OBJS) $(LIBS)
+
+install: all
+ mkdir -p $(PREFIX)/bin
+ cp -f $(OUT) $(PREFIX)/bin
+ mkdir -p $(PREFIX)/share/man/man1
+ cp $(MANPAGES) $(PREFIX)/share/man/man1
+
+clean:
+ rm -f $(OUT) $(OBJS)
+
+.PHONY: all clean