diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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) + |