blob: 8ea936a7039a279ad623bddce83bfc6dca665b09 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# 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 libpng) \
$(shell pkg-config --cflags --libs zlib) \
$(shell pkg-config --cflags --libs libqrencode)
VERSION = $(shell git describe --tags --long)
all: cqrlogo.c config.h
$(CC) $(CFLAGS) -o cqrlogo cqrlogo.c \
-DVERSION="\"$(VERSION)\""
config.h:
$(CP) config.def.h config.h
install:
$(INSTALL) -D -m0755 cqrlogo $(DESTDIR)/usr/share/webapps/cqrlogo/cqrlogo
clean:
$(RM) -f *.o *~ cqrlogo
|