aboutsummaryrefslogtreecommitdiff
path: root/ext2load
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-06-19 14:37:34 +0200
committerGuido Günther <agx@sigxcpu.org>2011-06-19 14:37:34 +0200
commit5184fe49c0964b6e16b462df610f353a3b7ea416 (patch)
treec9e240841ab6c3d0bbda5507a778f451e194c619 /ext2load
parentbb6bd2f7ea37c471c9a6747e1473c7ad1f00a499 (diff)
Split CFLAGS to ease compilation on other platforms
Diffstat (limited to 'ext2load')
-rw-r--r--ext2load/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/ext2load/Makefile b/ext2load/Makefile
index 932582b..2292152 100644
--- a/ext2load/Makefile
+++ b/ext2load/Makefile
@@ -19,12 +19,14 @@ OBJECTS = loader.o ext2io.o conffile.o
LIBS = $(EXT2LIB) $(ARCLIB)
TARGETS = ext2load
-CFLAGS = -O2 -I$(COMMONDIR) -I$(ARCINCLUDEDIR) -I$(E2FSINCLUDEDIR) \
- -Wextra -Wall -mno-abicalls -G 0 -fno-pic \
- -DSUBARCH=${SUBARCH} -fno-strict-aliasing
-
+MIPS_CFLAGS = -mno-abicalls -G 0 -fno-pic
+WARN_CFLAGS = -Wextra -Wall
# uncomment for debugging
-#CFLAGS+=-DDEBUG
+#DEBUG_CFLAGS = -DDEBUG
+
+CFLAGS = -O2 -I$(COMMONDIR) -I$(ARCINCLUDEDIR) -I$(E2FSINCLUDEDIR) \
+ -DSUBARCH=${SUBARCH} -fno-strict-aliasing \
+ $(WARN_CFLAGS) $(MIPS_CFLAGS) $(DEBUG_CFLAGS)
LD = ld
LDFLAGS = -N -T ld.script