X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=x86%2FMakefile;fp=x86%2FMakefile;h=c1d772b2d1b0b54f9f0ba6a118dac07f79500986;hb=bbba320911a86c0ee373f8297f80a2b82de22039;hp=c9bf680ceefeb598617e8b483a7184f245089247;hpb=eb3668fc5dab138073cd4844208ac05b94086a4a;p=gpsp.git 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}