summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2e2d4f5..c9c1bd7 100644
--- a/Makefile
+++ b/Makefile
@@ -16,11 +16,11 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs
# BeOS/Haiku standard library headers generate warnings
-ifneq ($(TARGET),beos)
+ifneq ($(BUILD),i586-pc-haiku)
WARNFLAGS := $(WARNFLAGS) -Werror
endif
# AmigaOS needs this to avoid warnings
-ifeq ($(TARGET),amiga)
+ifeq ($(findstring amigaos,$(BUILD)),amigaos)
CFLAGS := -U__STRICT_ANSI__ $(CFLAGS)
endif
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \