aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorfoswret <foswret@posteo.com>2025-12-13 14:57:58 -0600
committerfoswret <foswret@posteo.com>2025-12-13 14:57:58 -0600
commit2b87a7aa16c4de35828af4c996cf7c3ab1b2ad59 (patch)
tree7ce5cbfc38e7149e1c21b1149f7532fe38b0f97c /Makefile
parentee01e05bc968a66d4a2581bf2dd28f73584d1057 (diff)
after much pain, pango can now be compiled with the program correctlyHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
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