aboutsummaryrefslogtreecommitdiff
path: root/ext2load/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ext2load/Makefile')
-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