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.
16 lines
313 B
16 lines
313 B
.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}
|
|
|