summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: d8d213dcfae17959452e21c63548a0484ff77609 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# cqrlogo - CGI QR-Code logo for web services

CC	:= gcc
INSTALL	:= install
RM	:= rm
CFLAGS	+= -O2 -Wall -Werror
CFLAGS	+= $(shell pkg-config --cflags --libs gdk-pixbuf-2.0) \
	   $(shell pkg-config --cflags --libs libqrencode)

all: cqrlogo.c
	$(CC) $(CFLAGS) -o cqrlogo cqrlogo.c

install:
	$(INSTALL) -D -m0755 cqrlogo $(DESTDIR)/usr/share/webapps/cqrlogo/cqrlogo

clean:
	$(RM) -f *.o *~ cqrlogo