From 2b87a7aa16c4de35828af4c996cf7c3ab1b2ad59 Mon Sep 17 00:00:00 2001 From: foswret Date: Sat, 13 Dec 2025 14:57:58 -0600 Subject: after much pain, pango can now be compiled with the program correctly --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cd8ef21..02f7eb0 100644 --- a/Makefile +++ b/Makefile @@ -5,15 +5,15 @@ DIR = src OBJS = $(DIR)/draw.o $(DIR)/calp.o $(DIR)/date.o .PHONY: clean all install -FLAGS = `pkg-config --cflags pangocairo` -LIBS = `pkg-config --libs pangocairo` +TARGET = calp -CFLAGS = -O2 -g -Wall -Werror -Wextra -Winit-self -Wuninitialized -pedantic +CFLAGS = `pkg-config --cflags pangocairo` -O2 -g -Wall -Werror -Wextra -Winit-self -Wuninitialized -pedantic +LFLAGS = `pkg-config --libs pangocairo` -all: calp +all: $(TARGET) -calp: $(OBJS) - $(CC) $(FLAGS) -o calp $(OBJS) $(LIBS) +$(TARGET): $(OBJS) + $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LFLAGS) clean: -rm -f $(OBJS) calp -- cgit v1.2.3