mirror of
https://git.freebsd.org/ports.git
synced 2025-05-16 01:01:49 -04:00
- Pull the patch from GitHub which reduces idle CPU usage - Install extra color schemes and syntax highlight plugins
25 lines
488 B
Makefile
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
|