summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1bf4c11808f8c2ad602a4cd0a18432ae547f42ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC ?= cc
CFLAGS=-std=c99 -W -Wall -pedantic -O2 -Iinclude
OBJS=fhp.o test.o
APP=./fhp-test

all: $(OBJS)
	$(CC) -o $(APP) $(OBJS)

test: all
	$(APP)

%.o: %.c include/fhp/fhp.h
	$(CC) -c $(CFLAGS) $<

clean:
	rm -f $(APP) $(OBJS)