blob: 241bb5d2240abbc543fea00d1168460bf70322ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
CFLAGS+= -Wall -Wextra
CPPFLAGS+= -DLUA_USE_POSIX -I. \
$(shell pkg-config --cflags lua-$(LUA_VER) sdl2)
LIBS= $(shell pkg-config --libs lua-$(LUA_VER) sdl2)
lite_OBJS= api/api.o \
api/renderer.o \
api/renderer_font.o \
api/system.o \
lib/stb/stb_truetype.o \
main.o \
rencache.o \
renderer.o
CCACHE?= $(shell command -v ccache)
%.o: %.c
$(CCACHE) $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
lite: $(lite_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
all: lite
.PHONY: all
|