diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-06-19 14:37:34 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-06-19 14:37:34 +0200 |
commit | 5184fe49c0964b6e16b462df610f353a3b7ea416 (patch) | |
tree | c9e240841ab6c3d0bbda5507a778f451e194c619 /tip22 | |
parent | bb6bd2f7ea37c471c9a6747e1473c7ad1f00a499 (diff) |
Split CFLAGS to ease compilation on other platforms
Diffstat (limited to 'tip22')
-rw-r--r-- | tip22/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tip22/Makefile b/tip22/Makefile index 16031e5..8293a87 100644 --- a/tip22/Makefile +++ b/tip22/Makefile @@ -7,8 +7,13 @@ ARCLIB = $(ARCLIBDIR)/libarc.a COMMONDIR = ../common -CFLAGS += -O2 -I$(COMMONDIR) -I$(ARCLIBDIR) -Wall -mno-abicalls -G 0 \ - -fno-pic -DSUBARCH=${SUBARCH} +MIPS_CFLAGS = -mno-abicalls -G 0 -fno-pic +WARN_CFLAGS = -Wextra -Wall +# uncomment for debugging +#DEBUG_CFLAGS = -DDEBUG +CFLAGS += -O2 -I$(COMMONDIR) -I$(ARCLIBDIR) \ + -DSUBARCH=${SUBARCH} \ + $(WARN_CFLAGS) $(MIPS_CFLAGS) $(DEBUG_CFLAGS) ASFLAGS = -O2 -mno-abicalls -G 0 -fno-pic |