summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: d1ce94ae33977c9e062344ec23d2bdaa34a5eb7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.POSIX:

CC = cc

CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
CFLAGS   = -std=c99 -Wall -O2
LDFLAGS  = -s


all: bench

.c.o:
	$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)

.o:
	$(CC) -o $@ $< $(LDFLAGS)

clean:
	-rm -f -- bench *.o *.su

.SUFFIXES:
.SUFFIXES: .o .c

.PHONY: all clean