Added -Wall to Makefiles
This commit is contained in:
parent
2315c249d5
commit
8a4e175e25
@ -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
11
sdl_test/Makefile
Normal 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
|
||||||
|
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user