From b846a7a0ea77de85c0d84d3653d8db8d3c81b4c9 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 24 Dec 2016 22:27:38 +0100
Subject: Add support for OpenBSD
It just rejects the generic System V ABI and has other syscall numbers.
---
Makefile | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
(limited to 'Makefile')
diff --git a/Makefile b/Makefile
index 5bb5db1..d25311c 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
--
cgit v1.2.3-70-g09d2