This still needs to be cleaned up, particularly to properly pass the texture size around--there are a few unnecessary '128x256' magic numbers scattered in the code.
24 lines
513 B
Makefile
24 lines
513 B
Makefile
CFLAGS = -Og -g -gdwarf-4 -Wall -Wextra -Werror -Wfatal-errors -ggdb -Wno-error=unused-parameter -Wno-error=unused-variable -fstack-protector-strong
|
|
CXXFLAGS = -std=c++23
|
|
|
|
CFLAGS += $(shell pkg-config --cflags freetype2)
|
|
LDFLAGS = $(shell pkg-config --libs freetype2)
|
|
|
|
all: ttf-outline
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CFLAGS) $(CXXFLAGS) -c $< -o $@
|
|
|
|
%: %.o
|
|
$(CXX) $(LDFLAGS) $^ -o $@
|
|
|
|
ttf-outline: ttf-outline.o 2d-pack.o
|
|
|
|
clean:
|
|
rm -f *.o ttf-convert ttf-bitmap
|
|
|
|
.SUFFIXES:
|
|
.INTERMEDIATE:
|
|
.SECONDARY:
|
|
.PHONY: all clean
|