Added -Wall to Makefiles

This commit is contained in:
Armando Rivera 2013-11-10 23:06:52 -05:00
parent 2315c249d5
commit 8a4e175e25
3 changed files with 13 additions and 2 deletions

View File

@ -4,7 +4,7 @@ CC = g++
LDFLAGS = $(shell sdl2-config --libs --cflags) -ldl LDFLAGS = $(shell sdl2-config --libs --cflags) -ldl
pong: pong:
$(CC) -Wno-unused $@.cpp $(LDFLAGS) -o $@ $(CC) -Wall $@.cpp $(LDFLAGS) -o $@
clean: clean:
@rm -f pong @rm -f pong

11
sdl_test/Makefile Normal file
View File

@ -0,0 +1,11 @@
all:test
CC = g++
LDFLAGS = $(shell sdl-config --libs --cflags) -ldl
test:
$(CC) -Wall $@.cpp $(LDFLAGS) -o $@
clean:
@rm -f pong

View File

@ -5,7 +5,7 @@ LDFLAGS = $(shell wx-config --libs --cflags) -ldl
PLATFORM := $(shell uname -s) PLATFORM := $(shell uname -s)
help: help:
$(CC) $@.cpp $(LDFLAGS) -o $@ $(CC) -Wall $@.cpp $(LDFLAGS) -o $@
clean: clean:
@$(RM) -f help @$(RM) -f help