@@ -1,13 +1,14 @@
-CFLAGS += -std=c99 -pedantic -Wall -Wextra -g
-LDLIBS += -lutil
-CPPFLAGS += -D_DEFAULT_SOURCE
+include config.mk
-.PHONY: all clean test
+.PHONY: all clean install test
all: scroll
clean:
rm -f scroll
+install: scroll
+ cp scroll ${BINDIR}
+
test: scroll
# return code passthrough of childs
if ! ./scroll true; then exit 1; fi
@@ -0,0 +1,8 @@
+# paths
+PREFIX = /usr/local
+BINDIR = ${PREFIX}/bin
+CC ?= cc
+CFLAGS = -std=c99 -pedantic -Wall -Wextra -g
+LDLIBS += -lutil
+CPPFLAGS += -D_DEFAULT_SOURCE