diff options
author | notaz | 2011-09-05 19:31:58 +0300 |
---|---|---|
committer | notaz | 2011-09-06 00:18:06 +0300 |
commit | bbba320911a86c0ee373f8297f80a2b82de22039 (patch) | |
tree | 3b1320f78cade24ed84ae48e565445c239765f45 /gp2x/Makefile | |
parent | eb3668fc5dab138073cd4844208ac05b94086a4a (diff) | |
download | picogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.tar.gz picogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.tar.bz2 picogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.zip |
enable -Wall and fix warnings reported by it
Diffstat (limited to 'gp2x/Makefile')
-rw-r--r-- | gp2x/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gp2x/Makefile b/gp2x/Makefile index 529fa37..9d281c1 100644 --- a/gp2x/Makefile +++ b/gp2x/Makefile @@ -29,7 +29,7 @@ CFLAGS += -DWIZ_BUILD endif # NOTE: -funroll-loops will slow down compiling considerably CFLAGS += -O3 -std=c99 -msoft-float -funsigned-char -fno-common \ - -fno-builtin \ + -fno-builtin -Wall \ INCLUDES = `$(PREFIX)/bin/sdl-config --cflags` -I$(PREFIX)/include LIBS = `$(PREFIX)/bin/sdl-config --libs` \ @@ -42,6 +42,10 @@ endif .SUFFIXES: .c +all: $(BIN) + +cpu.o cpu_threaded.z: CFLAGS += -Wno-unused-variable -Wno-unused-label + %.z: %.c $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< @@ -57,7 +61,7 @@ endif %.o: %.s $(CC) $(ASFLAGS) $(INCLUDES) -c -o $@ $< -all: $(OBJS) +$(BIN): $(OBJS) $(CC) $(OBJS) $(LIBS) -o $(BIN) $(STRIP) $(BIN) |