summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) $<