Makefile (415B)
1 LIBS = -lm `pkg-config --libs x11 harfbuzz fontconfig fribidi` 2 STD = -std=c99 3 CFLAGS = -g -w -fcommon -Wall -Werror -Wextra `pkg-config --cflags x11 harfbuzz fontconfig fribidi` -pedantic 4 OBJ = stb_truetype.o text_edit.o text_common.o text_buffer.o ltk.o ini.o grid.o button.o test1.o 5 6 test1: $(OBJ) 7 gcc $(STD) -o $@ $(OBJ) $(LIBS) 8 9 %.o: %.c 10 $(CC) -c -o $@ $< $(CFLAGS) 11 12 .PHONY: clean 13 14 clean: 15 rm -f $(OBJ) test1