18 lines
351 B
Makefile
18 lines
351 B
Makefile
# Make script for Chad projects
|
|
# This script depends on the following variables
|
|
# - TARGET : output program name
|
|
# - ARGS : default flags to fork ${OUT} with
|
|
|
|
PREFIX:=/usr/bin
|
|
|
|
CFLAGS:=-std=c99
|
|
CPPFLAGS:=-D_GNU_SOURCE -D_FORTIFY_SOURCE=2
|
|
|
|
DEBUG=1
|
|
|
|
ifeq (${DEBUG},1)
|
|
CFLAGS += -Og -ggdb -pg -fno-inline
|
|
else
|
|
CFLAGS += -O2 -flto=auto
|
|
endif
|