From 587315ff1af819dbf17c52d2622fa48526563707 Mon Sep 17 00:00:00 2001 From: foswret Date: Thu, 30 Apr 2026 23:23:25 -0500 Subject: first commit --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4c8f544 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +VERSION = 0.0 +PREFIX = /usr/local +CC = cc +DIR = src +OBJS = $(DIR)/calp.o $(DIR)/draw.o +.PHONY: clean all install + +TARGET = calp + +CFLAGS = `pkg-config --cflags pangocairo` -O2 -g -Wall -Werror -Wextra -Winit-self -Wuninitialized -pedantic +LFLAGS = `pkg-config --libs pangocairo` -lm + +all: $(TARGET) + +$(TARGET): $(OBJS) + $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LFLAGS) + +clean: + -rm -f $(OBJS) calp + +install: all + mkdir -p ${DESTDIR}${PREFIX}/bin + cp -f calp ${DESTDIR}${PREFIX}/bin + chmod 755 ${DESTDIR}${PREFIX}/bin/calp + +uninstall: + rm -f ${DESTDIR}${PREFIX}/bin/calp -- cgit v1.2.3