notaz.gp2x.de
/
gpsp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enable -Wall and fix warnings reported by it
[gpsp.git]
/
x86
/
Makefile
diff --git
a/x86/Makefile
b/x86/Makefile
index
c9bf680
..
c1d772b
100644
(file)
--- a/
x86/Makefile
+++ b/
x86/Makefile
@@
-15,7
+15,7
@@
BIN ?= gpsp.exe
# Platform specific definitions
VPATH += ..
# Platform specific definitions
VPATH += ..
-CFLAGS += -DPC_BUILD -m32
+CFLAGS += -DPC_BUILD -
Wall -
m32
INCLUDES = -I${PREFIX}/include `sdl-config --cflags`
LIBS = -L${PREFIX}/lib `sdl-config --libs` -mconsole -lz -m32
INCLUDES = -I${PREFIX}/include `sdl-config --cflags`
LIBS = -L${PREFIX}/lib `sdl-config --libs` -mconsole -lz -m32
@@
-23,15
+23,19
@@
LIBS = -L${PREFIX}/lib `sdl-config --libs` -mconsole -lz -m32
.SUFFIXES: .c .S
.SUFFIXES: .c .S
+all: ${BIN}
+
%.o: %.c
${CC} ${CFLAGS} ${INCLUDES} -c -o $@ $<
%.o: %.S
${CC} ${CFLAGS} -c -o $@ $<
%.o: %.c
${CC} ${CFLAGS} ${INCLUDES} -c -o $@ $<
%.o: %.S
${CC} ${CFLAGS} -c -o $@ $<
-all: ${OBJS}
+cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label
+
+${BIN}: ${OBJS}
${CC} ${OBJS} ${LIBS} -o ${BIN}
${CC} ${OBJS} ${LIBS} -o ${BIN}
-
${STRIP} ${BIN}
+
#
${STRIP} ${BIN}
clean:
rm -f *.o ${BIN}
clean:
rm -f *.o ${BIN}