aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/Makefile
blob: 154bcbf6d7acbb5dee9a7566cb61864c91dff7ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
OBJECTS :=      bitmap.o                \
                bitstream.o             \
                constants.o             \
                code-common.o           \
                code-create.o           \
                code-layout.o           \
                code-parse.o            \
                data-common.o           \
                data-create.o           \
                data-parse.o            \
                galois.o

CFLAGS := -std=c89 -pedantic -I. -Wall
CFLAGS += -g
#CFLAGS += -O3 -DNDEBUG

all : libqr qrgen qrparse

$(OBJECTS) : $(wildcard *.h qr/*.h)

libqr : libqr.a($(OBJECTS))

qrgen : libqr qrgen.c
	$(CC) $(CFLAGS) -o qrgen qrgen.c libqr.a $(shell pkg-config libpng --cflags --libs)

qrparse : libqr qrparse.c
	$(CC) $(CFLAGS) -o qrparse qrparse.c libqr.a

.PHONY : clean
clean:
	$(RM) qr/*~ *~ *.o *.a *.so qrgen