2023-08-21 09:05:27 -04:00
|
|
|
# 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
|
2023-08-23 22:45:07 -04:00
|
|
|
CPPFLAGS:=-Isyntax/ -D_GNU_SOURCE -D_FORTIFY_SOURCE=2
|
2023-08-21 09:05:27 -04:00
|
|
|
|
|
|
|
DEBUG=1
|
|
|
|
|
|
|
|
ifeq (${DEBUG},1)
|
|
|
|
CFLAGS += -Og -ggdb -pg -fno-inline
|
|
|
|
else
|
|
|
|
CFLAGS += -O2 -flto=auto
|
|
|
|
endif
|
2023-08-21 10:18:26 -04:00
|
|
|
|
|
|
|
TARGET:=hl
|