summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStijn Buys <ingar@telenet.be>2022-05-25 20:27:22 +0200
committerStijn Buys <ingar@telenet.be>2022-05-25 20:27:22 +0200
commit9c1ed304375d5515e5a4a20bbdb0784d5b4de4b1 (patch)
treeb1e6f6bba6f9ff941da86f8e818d2c32742a3827 /Makefile
parent377ee795e688f2f3363edcf3cb6455ec6b6653ef (diff)
Changed license to LGPL-3.0, to accomodate the cairo_jpeg license. Added support for writing jpeg files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
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)
+