summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-08-26 21:48:54 -0400
committerPaul Duncan <pabs@pablotron.org>2016-08-26 21:48:54 -0400
commit0f8623056efdc7a5fe4b02a0b819b920703c5460 (patch)
treeabe6d8a61ba1135b02d00964a264910f13ee0da7 /Makefile
parent8a3c72fdaabdc8c565a8c91361a2f8d38c892e1e (diff)
downloadlibfhp-0f8623056efdc7a5fe4b02a0b819b920703c5460.tar.bz2
libfhp-0f8623056efdc7a5fe4b02a0b819b920703c5460.zip
add test target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9541695..1bf4c11 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
CC ?= cc
CFLAGS=-std=c99 -W -Wall -pedantic -O2 -Iinclude
OBJS=fhp.o test.o
-APP=fhp-test
+APP=./fhp-test
all: $(OBJS)
$(CC) -o $(APP) $(OBJS)
+test: all
+ $(APP)
+
%.o: %.c include/fhp/fhp.h
$(CC) -c $(CFLAGS) $<