Zack Buhman c86fcbd6af editor: add example
This adds a simple text editor with basic visual line-editing
capabilities.
2023-06-08 22:50:07 +00:00

21 lines
399 B
Makefile

CFLAGS = -Og -Wall -Wextra -Werror -ggdb -Wno-error=unused-parameter -Wno-error=unused-variable
CFLAGS += $(shell pkg-config --cflags freetype2)
LDFLAGS = $(shell pkg-config --libs freetype2)
all: ttf-convert ttf-bitmap
%.o: %.cpp
$(CXX) $(CFLAGS) -c $< -o $@
%: %.o
$(CXX) $(LDFLAGS) $< -o $@
clean:
rm -f *.o ttf-convert ttf-bitmap
.SUFFIXES:
.INTERMEDIATE:
.SECONDARY:
.PHONY: all clean