aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Makefile
blob: 47f4db7d58182105f29d487bb45a67f7ff64261e (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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)

# library abi version
SOVERSION	:= 0

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.*