X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=x86%2FMakefile;h=c1d772b2d1b0b54f9f0ba6a118dac07f79500986;hb=bbba320911a86c0ee373f8297f80a2b82de22039;hp=e0a576771ed8214bc7c5e94d579c447d26afe699;hpb=2823a4c8196a02da86ee180cf55586d4e8c91a2f;p=gpsp.git diff --git a/x86/Makefile b/x86/Makefile index e0a5767..c1d772b 100644 --- a/x86/Makefile +++ b/x86/Makefile @@ -15,23 +15,27 @@ BIN ?= gpsp.exe # Platform specific definitions VPATH += .. -CFLAGS += -DPC_BUILD +CFLAGS += -DPC_BUILD -Wall -m32 INCLUDES = -I${PREFIX}/include `sdl-config --cflags` -LIBS = -L${PREFIX}/lib `sdl-config --libs` -mconsole -lz +LIBS = -L${PREFIX}/lib `sdl-config --libs` -mconsole -lz -m32 # Compilation: .SUFFIXES: .c .S +all: ${BIN} + %.o: %.c ${CC} ${CFLAGS} ${INCLUDES} -c -o $@ $< %.o: %.S - ${AS} -o $@ $< + ${CC} ${CFLAGS} -c -o $@ $< + +cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label -all: ${OBJS} +${BIN}: ${OBJS} ${CC} ${OBJS} ${LIBS} -o ${BIN} - ${STRIP} ${BIN} +# ${STRIP} ${BIN} clean: rm -f *.o ${BIN}