aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a7ff77512ff96dbd79d3a097b46c3c21a1f0b339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# All we need is C99 and POSIX.1-2001, which this should make available
CFLAGS = -std=gnu99
NAMES = bfc-amd64-linux bfc-amd64-openbsd

all: $(NAMES)

%-linux: %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ -DTARGET_LINUX
%-openbsd: %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ -DTARGET_OPENBSD
clean:
	rm -f $(NAMES)

.PHONY: all clean