2023-08-16 01:06:37 -04:00
|
|
|
CFLAGS:=-std=c99 -O2 -Wall -Wextra -Wpedantic -Wvla -Wshadow -Wundef
|
|
|
|
CPPFLAGS:=-D_FORTIFY_SOURCE=2
|
|
|
|
|
|
|
|
SRC.dir:=src/
|
|
|
|
SRC:=$(shell find ${SRC.dir} -iname '*.c')
|
|
|
|
OBJ:=$(subst .c,.o,${SRC})
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
${COMPILE.c} $< -o $@
|
|
|
|
|
|
|
|
hl: ${OBJ}
|
|
|
|
${LINK.c} ${OBJ} -o $@
|
2023-08-16 11:30:29 -04:00
|
|
|
|
|
|
|
new:
|
|
|
|
g++ src2/main.cpp -o hl -ggdb
|