You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
313 B
17 lines
313 B
3 years ago
|
.POSIX:
|
||
|
|
||
|
CC ?= gcc
|
||
|
SRCDIR = ./src
|
||
|
CFLAGS = -Wall -Werror -pedantic -O3 -std=gnu11 -fno-strict-aliasing -I${SRCDIR}\
|
||
|
-DLUA_USE_POSIX
|
||
|
# remove this
|
||
|
LDFLAGS = -lSDL2 -lm -llua5.2
|
||
|
FILES != find ${SRCDIR} -name '*.c'
|
||
|
OBJS = $(FILES:.c=.o)
|
||
|
|
||
|
lite: ${OBJS}
|
||
|
${CC} ${LDFLAGS} $^ -o $@
|
||
|
|
||
|
clean:
|
||
|
rm -f lite ${OBJS}
|