summaryrefslogtreecommitdiff
path: root/pandora
diff options
context:
space:
mode:
authornotaz2011-09-05 19:31:58 +0300
committernotaz2011-09-06 00:18:06 +0300
commitbbba320911a86c0ee373f8297f80a2b82de22039 (patch)
tree3b1320f78cade24ed84ae48e565445c239765f45 /pandora
parenteb3668fc5dab138073cd4844208ac05b94086a4a (diff)
downloadpicogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.tar.gz
picogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.tar.bz2
picogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.zip
enable -Wall and fix warnings reported by it
Diffstat (limited to 'pandora')
-rw-r--r--pandora/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/pandora/Makefile b/pandora/Makefile
index 090cccb..a485146 100644
--- a/pandora/Makefile
+++ b/pandora/Makefile
@@ -14,10 +14,9 @@ BIN = gpsp
# Platform specific definitions
VPATH += .. ../arm
-CFLAGS += -DARM_ARCH -DPND_BUILD
-CFLAGS += -funsigned-char
+CFLAGS += -DARM_ARCH -DPND_BUILD -Wall
CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -ffast-math
-CFLAGS += -fno-common -fno-builtin
+CFLAGS += -fno-common
CFLAGS += -ggdb
CFLAGS += -O2
@@ -28,10 +27,12 @@ LIBS += -ldl -lpthread -lz
# Compilation:
+all: $(BIN)
+
%.o: %.S
$(CC) $(CFLAGS) -c -o $@ $<
-all: $(BIN)
+cpu.o cpu_threaded.o: CFLAGS += -Wno-unused-variable -Wno-unused-label
$(BIN): $(OBJS)
$(CC) $(OBJS) $(LIBS) -o $(BIN)