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

CC	:= gcc
LN	:= ln
CFLAGS	+= -O2 -Wall -Werror
CFLAGS	+= -liniparser
CFLAGS	+= $(shell pkg-config --cflags --libs libpng)
CFLAGS	+= $(shell pkg-config --cflags --libs zlib)
CFLAGS	+= $(shell pkg-config --cflags --libs libqrencode)

all: libcqrlogo

libcqrlogo: libcqrlogo.c libcqrlogo.h ../config.h ../version.h
	$(CC) $(CFLAGS) $(LDFLAGS) -shared -fPIC -Wl,-soname,libcqrlogo.so.$(SOVERSION) -o libcqrlogo.so.$(SOVERSION) libcqrlogo.c
	$(LN) -sf libcqrlogo.so.$(SOVERSION) libcqrlogo.so

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