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

CC	:= gcc
INSTALL	:= install
CP	:= cp
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 config.h
	$(CC) $(CFLAGS) -o cqrlogo cqrlogo.c

config.h:
	$(CP) config.def.h config.h
install:
	$(INSTALL) -D -m0755 cqrlogo $(DESTDIR)/usr/share/webapps/cqrlogo/cqrlogo

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