From f9bb2adaa11be25f880c323f66210a13868fa90d Mon Sep 17 00:00:00 2001 From: foswret Date: Sat, 10 Oct 2026 20:55:15 -0500 Subject: Fix mangled filesync, add descriptive comments --- Makefile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7b7255c..9ebc01a 100644 --- a/Makefile +++ b/Makefile @@ -1,27 +1,28 @@ VERSION = 0.0 PREFIX = /usr/local -CC = cc +CC = c99 DIR = src -OBJS = $(DIR)/calp.o $(DIR)/draw.o $(DIR)/date.o $(DIR)/image.o +OBJS = $(DIR)/calp.o $(DIR)/draw.o $(DIR)/date.o .PHONY: clean all install TARGET = calp -CFLAGS = `pkgconf --cflags pangocairo` -O2 -g -Wall -Werror -Wextra -Winit-self -Wuninitialized -pedantic -LFLAGS = `pkgconf --libs pangocairo` -lm - +# `Magick-config --cflags` +CFLAGS = `pkg-config --cflags pangocairo` -O2 -g -Wall -Werror -Wextra -Winit-self -Wuninitialized -pedantic +LFLAGS = `pkg-config --libs pangocairo` -lm +# `Magick-config --ldflags --libs` all: $(TARGET) $(TARGET): $(OBJS) $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LFLAGS) clean: - -rm -f $(OBJS) calp + -rm -f $(OBJS) $(TARGET) install: all mkdir -p ${DESTDIR}${PREFIX}/bin cp -f calp ${DESTDIR}${PREFIX}/bin - chmod 755 ${DESTDIR}${PREFIX}/bin/calp + chmod 755 ${DESTDIR}${PREFIX}/bin/$(TARGET) uninstall: - rm -f ${DESTDIR}${PREFIX}/bin/calp + rm -f ${DESTDIR}${PREFIX}/bin/$(TARGET) -- cgit v1.2.3