summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)
+