2021-10-30 02:35:54 +02:00
|
|
|
# All we need is C99 and POSIX.1-2001, which this should make available
|
2016-12-22 22:58:20 +01:00
|
|
|
CFLAGS = -std=gnu99
|
2016-12-24 22:27:38 +01:00
|
|
|
NAMES = bfc-amd64-linux bfc-amd64-openbsd
|
2016-12-22 22:58:20 +01:00
|
|
|
|
|
|
|
all: $(NAMES)
|
|
|
|
|
2016-12-24 22:27:38 +01:00
|
|
|
%-linux: %.c
|
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ -DTARGET_LINUX
|
|
|
|
%-openbsd: %.c
|
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ -DTARGET_OPENBSD
|
2016-12-22 22:58:20 +01:00
|
|
|
clean:
|
|
|
|
rm -f $(NAMES)
|
|
|
|
|
|
|
|
.PHONY: all clean
|