forked from manuels/unix-toolbox.js-imagemagick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
107 lines (100 loc) · 3.19 KB
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
UTIL_PATH=./src/utilities
ZLIB_PATH=./zlib/src
LIBPNG_PATH=./libpng/src
LIBJPEG_PATH=./libjpeg/src
ZLIB=${ZLIB_PATH}/compress.o \
${ZLIB_PATH}/adler32.o \
${ZLIB_PATH}/crc32.o \
${ZLIB_PATH}/deflate.o \
${ZLIB_PATH}/gzclose.o \
${ZLIB_PATH}/gzlib.o \
${ZLIB_PATH}/gzread.o \
${ZLIB_PATH}/gzwrite.o \
${ZLIB_PATH}/infback.o \
${ZLIB_PATH}/inffast.o \
${ZLIB_PATH}/inflate.o \
${ZLIB_PATH}/inftrees.o \
${ZLIB_PATH}/trees.o \
${ZLIB_PATH}/uncompr.o \
${ZLIB_PATH}/zutil.o
LIBPNG=${LIBPNG_PATH}/libpng15_la-pngerror.o \
${LIBPNG_PATH}/libpng15_la-pngget.o \
${LIBPNG_PATH}/libpng15_la-pngmem.o \
${LIBPNG_PATH}/libpng15_la-png.o \
${LIBPNG_PATH}/libpng15_la-pngpread.o \
${LIBPNG_PATH}/libpng15_la-pngread.o \
${LIBPNG_PATH}/libpng15_la-pngrio.o \
${LIBPNG_PATH}/libpng15_la-pngrtran.o \
${LIBPNG_PATH}/libpng15_la-pngrutil.o \
${LIBPNG_PATH}/libpng15_la-pngset.o \
${LIBPNG_PATH}/libpng15_la-pngtrans.o \
${LIBPNG_PATH}/libpng15_la-pngwio.o \
${LIBPNG_PATH}/libpng15_la-pngwrite.o \
${LIBPNG_PATH}/libpng15_la-pngwtran.o \
${LIBPNG_PATH}/libpng15_la-pngwutil.o
LIBJPEG=${LIBJPEG_PATH}/cdjpeg.o \
${LIBJPEG_PATH}/jaricom.o \
${LIBJPEG_PATH}/jcapimin.o \
${LIBJPEG_PATH}/jcapistd.o \
${LIBJPEG_PATH}/jcarith.o \
${LIBJPEG_PATH}/jccoefct.o \
${LIBJPEG_PATH}/jccolor.o \
${LIBJPEG_PATH}/jcdctmgr.o \
${LIBJPEG_PATH}/jchuff.o \
${LIBJPEG_PATH}/jcinit.o \
${LIBJPEG_PATH}/jcmainct.o \
${LIBJPEG_PATH}/jcmarker.o \
${LIBJPEG_PATH}/jcmaster.o \
${LIBJPEG_PATH}/jcomapi.o \
${LIBJPEG_PATH}/jcparam.o \
${LIBJPEG_PATH}/jcprepct.o \
${LIBJPEG_PATH}/jcsample.o \
${LIBJPEG_PATH}/jctrans.o \
${LIBJPEG_PATH}/jdapimin.o \
${LIBJPEG_PATH}/jdapistd.o \
${LIBJPEG_PATH}/jdarith.o \
${LIBJPEG_PATH}/jdatadst.o \
${LIBJPEG_PATH}/jdatasrc.o \
${LIBJPEG_PATH}/jdcoefct.o \
${LIBJPEG_PATH}/jdcolor.o \
${LIBJPEG_PATH}/jddctmgr.o \
${LIBJPEG_PATH}/jdhuff.o \
${LIBJPEG_PATH}/jdinput.o \
${LIBJPEG_PATH}/jdmainct.o \
${LIBJPEG_PATH}/jdmarker.o \
${LIBJPEG_PATH}/jdmaster.o \
${LIBJPEG_PATH}/jdmerge.o \
${LIBJPEG_PATH}/jdpostct.o \
${LIBJPEG_PATH}/jdsample.o \
${LIBJPEG_PATH}/jdtrans.o \
${LIBJPEG_PATH}/jerror.o \
${LIBJPEG_PATH}/jfdctflt.o \
${LIBJPEG_PATH}/jfdctfst.o \
${LIBJPEG_PATH}/jfdctint.o \
${LIBJPEG_PATH}/jidctflt.o \
${LIBJPEG_PATH}/jidctfst.o \
${LIBJPEG_PATH}/jidctint.o \
${LIBJPEG_PATH}/jmemmgr.o \
${LIBJPEG_PATH}/jmemnobs.o \
${LIBJPEG_PATH}/jquant1.o \
${LIBJPEG_PATH}/jquant2.o \
${LIBJPEG_PATH}/jutils.o \
${LIBJPEG_PATH}/rdbmp.o \
${LIBJPEG_PATH}/rdcolmap.o \
${LIBJPEG_PATH}/rdgif.o \
${LIBJPEG_PATH}/rdppm.o \
${LIBJPEG_PATH}/rdrle.o \
${LIBJPEG_PATH}/rdswitch.o \
${LIBJPEG_PATH}/rdtarga.o \
${LIBJPEG_PATH}/transupp.o \
${LIBJPEG_PATH}/wrbmp.o \
${LIBJPEG_PATH}/wrgif.o \
${LIBJPEG_PATH}/wrppm.o \
${LIBJPEG_PATH}/wrrle.o \
${LIBJPEG_PATH}/wrtarga.o
LIBTIFF=./libtiff/src/libtiff/.libs/libtiff.so
all: utils ;
utils: compare composite conjure convert identify mogrify montage stream ;
%:
cp ${UTIL_PATH}/$@ ${UTIL_PATH}/[email protected]
emcc -O2 -minify 1 --pre-js ./toolbox-base/pre.js ${UTIL_PATH}/[email protected] ${ZLIB} ${LIBPNG} ${LIBJPEG} ${LIBTIFF} -o [email protected] -s ALLOW_MEMORY_GROWTH=1