forked from smuehlst/jbig2enc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
21 lines (17 loc) · 776 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC=g++
LEPTONICA=../leptonica-1.68
# For example, a fink MacOSX install:
# EXTRA=-I/sw/include/ -I/sw/include/libpng -I/sw/include/libjpeg -L/sw/lib
CFLAGS=-I${LEPTONICA}/src -Wall -I/usr/include -L/usr/lib -O3 ${EXTRA}
jbig2: libjbig2enc.a jbig2.cc
$(CC) -o jbig2 jbig2.cc -L. -ljbig2enc ${LEPTONICA}/src/.libs/liblept.a $(CFLAGS) -lpng -ljpeg -ltiff -lm -lz
libjbig2enc.a: jbig2enc.o jbig2arith.o jbig2sym.o
ar -rcv libjbig2enc.a jbig2enc.o jbig2arith.o jbig2sym.o
jbig2enc.o: jbig2enc.cc jbig2arith.h jbig2sym.h jbig2structs.h jbig2segments.h
$(CC) -c jbig2enc.cc $(CFLAGS)
jbig2arith.o: jbig2arith.cc jbig2arith.h
$(CC) -c jbig2arith.cc $(CFLAGS)
jbig2sym.o: jbig2sym.cc jbig2arith.h
$(CC) -c jbig2sym.cc -DUSE_EXT $(CFLAGS)
clean:
rm -f *.o jbig2 libjbig2enc.a