Explicitly write out inference rule for .c.o
[chip8.git] / config.mk
blob0221da913f595589d1a5848d4f1b422dbe10a73f
1 PROG = c8emul
3 # compiler
4 CC = cc
6 # flags
7 CFLAGS = -std=c99 -O2 -Wall -Wextra -Wpedantic \
8 -Walloca -Wcast-qual -Wconversion -Wformat=2 -Wformat-security \
9 -Wnull-dereference -Wstack-protector -Wvla -Warray-bounds \
10 -Wbad-function-cast -Wconversion -Wshadow -Wstrict-overflow=4 -Wundef \
11 -Wstrict-prototypes -Wswitch-default -Wfloat-equal \
12 -Wpointer-arith -Wswitch-enum \
13 -D_FORTIFY_SOURCE=2 \
14 `sdl2-config --cflags` \
15 -fstack-protector-strong -fPIE -fstack-clash-protection
17 LDFLAGS = -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-z,separate-code
19 # libs
20 LDLIBS = `sdl2-config --libs`
22 # paths
23 PREFIX = /usr/local
24 MANPREFIX = ${PREFIX}/share/man
26 RM = rm