ports/editors/lite/files/makefile
Alexey Dokuchaev 6b26932544 editors/lite: the port had been improved (part one)
- Pull the patch from GitHub which reduces idle CPU usage
- Install extra color schemes and syntax highlight plugins
2022-07-09 18:18:18 +00:00

25 lines
488 B
Makefile

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