CFLAGS = `pkg-config cairo libjpeg popt --cflags` -D_XOPEN_SOURCE -g LDDFLAGS = `pkg-config cairo libjpeg popt --libs` -lm SRC = cairo_jpg.o genclockimg.o TARGET = genclockimg $(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)