From 9c1ed304375d5515e5a4a20bbdb0784d5b4de4b1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 25 May 2022 20:27:22 +0200 Subject: Changed license to LGPL-3.0, to accomodate the cairo_jpeg license. Added support for writing jpeg files. --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3ec2468..9faee5b 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ -CFLAGS = -I/usr/include/cairo -D_XOPEN_SOURCE -g -LDDFLAGS = -lcairo -lpopt -lm +CFLAGS = `pkg-config cairo libjpeg popt --cflags` -D_XOPEN_SOURCE -g +LDDFLAGS = `pkg-config cairo libjpeg popt --libs` -lm -SRC = genclockimg.o +SRC = cairo_jpg.o genclockimg.o TARGET = genclockimg $(TARGET): $(SRC) @@ -13,3 +13,9 @@ all: clean: rm *.o $(TARGET) +install: + install -o root -g root -m 755 $(target) /usr/bin + +uninstall: + rm /usr/bin/$(TARGET) + -- cgit v1.2.3