aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormcpcpc <michaelczigler@icloud.com>2020-08-06 16:08:22 -0400
committermcpcpc <michaelczigler@icloud.com>2020-08-06 16:08:22 -0400
commitc1999123facb3ea39ec943d042f7f8fc331eb442 (patch)
tree9b55950a7fed5bb8111204caa5ec239f6fb79932 /Makefile
downloadkirc-c1999123facb3ea39ec943d042f7f8fc331eb442.tar.gz
kirc-c1999123facb3ea39ec943d042f7f8fc331eb442.tar.bz2
kirc-c1999123facb3ea39ec943d042f7f8fc331eb442.tar.xz
kirc-c1999123facb3ea39ec943d042f7f8fc331eb442.tar.zst
kirc-c1999123facb3ea39ec943d042f7f8fc331eb442.zip
new at 0.0.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..835603d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+CFLAGS += -std=c99 -Wall -Wextra -pedantic -Wold-style-declaration
+PREFIX ?= /usr
+BINDIR ?= $(PREFIX)/bin
+CC ?= gcc
+
+all: kirc
+
+kfc: kirc.c Makefile
+ $(CC) -O3 $(CFLAGS) -o $@ $< -lX11 $(LDFLAGS)
+
+install: all
+ install -Dm755 kirc $(DESTDIR)$(BINDIR)/kirc
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDIR)/kirc
+
+clean:
+ rm -f kirc *.o
+
+.PHONY: all install uninstall clean