bfc/Makefile
Přemysl Janouch b846a7a0ea
Add support for OpenBSD
It just rejects the generic System V ABI and has other syscall numbers.
2016-12-24 22:29:29 +01:00

15 lines
321 B
Makefile

# All we need is C99 and POSIX, 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