summaryrefslogtreecommitdiff
path: root/Makefile
blob: fbf925eaa18e6b0dfe2fac429cc7ef174fe0f601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

TARGET = clockimg
SRC = clockimg.o cairo_jpg.o

CFLAGS = `pkg-config cairo libjpeg popt --cflags` -D_XOPEN_SOURCE -g
LDDFLAGS = `pkg-config cairo libjpeg popt --libs` -lm

$(TARGET): $(SRC)
	gcc $(SRC) -o $(TARGET) $(LDDFLAGS)

all:

clean:
	rm *.o $(TARGET)

install:
	install -o root -g root -m 755 $(TARGET) /usr/bin
	
uninstall:
	rm /usr/bin/$(TARGET)