Build with -O2 by default and -g with make debug
This commit is contained in:
parent
51143d90ed
commit
f04796ec8b
1 changed files with 4 additions and 1 deletions
|
|
@ -1,13 +1,16 @@
|
||||||
.PHONY: default all clean
|
.PHONY: default all clean
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Wall -pthread -g
|
CFLAGS = -Wall -pthread -O2
|
||||||
LIBS = -levent -levent_pthreads -lrt -lGL -lGLEW -lglfw
|
LIBS = -levent -levent_pthreads -lrt -lGL -lGLEW -lglfw
|
||||||
TARGET = pixelnuke
|
TARGET = pixelnuke
|
||||||
|
|
||||||
default: $(TARGET)
|
default: $(TARGET)
|
||||||
all: default
|
all: default
|
||||||
|
|
||||||
|
debug: CFLAGS += -DDEBUG -g
|
||||||
|
debug: default
|
||||||
|
|
||||||
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
|
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
|
||||||
HEADERS = $(wildcard *.h)
|
HEADERS = $(wildcard *.h)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue