summaryrefslogtreecommitdiff
path: root/x86/Makefile
diff options
context:
space:
mode:
authornotaz2011-09-05 19:31:58 +0300
committernotaz2011-09-06 00:18:06 +0300
commitbbba320911a86c0ee373f8297f80a2b82de22039 (patch)
tree3b1320f78cade24ed84ae48e565445c239765f45 /x86/Makefile
parenteb3668fc5dab138073cd4844208ac05b94086a4a (diff)
downloadpicogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.tar.gz
picogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.tar.bz2
picogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.zip
enable -Wall and fix warnings reported by it
Diffstat (limited to 'x86/Makefile')
-rw-r--r--x86/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/x86/Makefile b/x86/Makefile
index c9bf680..c1d772b 100644
--- a/x86/Makefile
+++ b/x86/Makefile
@@ -15,7 +15,7 @@ BIN ?= gpsp.exe
# 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
@@ -23,15 +23,19 @@ LIBS = -L${PREFIX}/lib `sdl-config --libs` -mconsole -lz -m32
.SUFFIXES: .c .S
+all: ${BIN}
+
%.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}
- ${STRIP} ${BIN}
+# ${STRIP} ${BIN}
clean:
rm -f *.o ${BIN}