From 0f8623056efdc7a5fe4b02a0b819b920703c5460 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 26 Aug 2016 21:48:54 -0400 Subject: add test target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) $< -- cgit v1.2.3