diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-12-24 22:27:38 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-12-24 22:29:29 +0100 |
commit | b846a7a0ea77de85c0d84d3653d8db8d3c81b4c9 (patch) | |
tree | 91051da193c78d12608552d1b98c1b6b6ec3090f /Makefile | |
parent | cf6c1e67ba52943a9823018416cbc505962e85de (diff) | |
download | bfc-b846a7a0ea77de85c0d84d3653d8db8d3c81b4c9.tar.gz bfc-b846a7a0ea77de85c0d84d3653d8db8d3c81b4c9.tar.xz bfc-b846a7a0ea77de85c0d84d3653d8db8d3c81b4c9.zip |
Add support for OpenBSD
It just rejects the generic System V ABI and has other syscall numbers.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,11 +1,13 @@ # All we need is C99 and POSIX, which this should make available CFLAGS = -std=gnu99 -NAMES = bfc-amd64-linux +NAMES = bfc-amd64-linux bfc-amd64-openbsd all: $(NAMES) -%: %.c - $(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ +%-linux: %.c + $(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ -DTARGET_LINUX +%-openbsd: %.c + $(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ -DTARGET_OPENBSD clean: rm -f $(NAMES) |