aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
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)