-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
505 lines (409 loc) · 16.6 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
export UNAME = $(shell uname)
MAJ_VERSION=1
MIN_VERSION=0
FUL_VERSION=$(MAJ_VERSION).$(MIN_VERSION)
ifeq ($(UNAME), Darwin)
LFLAGS_LIB=-dynamic \
-dynamiclib \
-framework Carbon \
-framework CoreFoundation \
-framework IOKit \
-o
CFLAGS_BASE=-c \
-Wall \
-Wunused \
-Wmissing-include-dirs \
-Werror \
-g \
-O0 \
-fpic \
-fno-stack-protector \
-std=c++11 \
-Wc++11-extensions
EXEC_FLAGS=-std=c++11 -ldl -DOSX -Wc++11-extensions -o
else
CFLAGS_BASE=-Wall -fPIC -std=c++11 -Wc++11-extensions -c
LFLAGS_LIB=-shared -Wl,-soname
EXEC_FLAGS=-std=c++11 -rdynamic -ldl -Wc++11-extensions -o
endif
OPENCV_INCLUDES=-I/usr/local/include -I/usr/include -I/usr/include/opencv2 -I/usr/local/include/opencv-3.4.2/ -I/usr/local/include/opencv4/
OPENCV_LIBS=-L/usr/local/lib -L/usr/lib -lopencv_core -lopencv_highgui -lopencv_imgcodecs
all: test PixelFilter \
epx kuwahara xbrz hqx lqx xbr \
sai supersai eagle supereagle \
rgb tv advmameinterp scale3x \
magnify amscale horiz vertscan \
reverseaa tvzero \
ultra2x super2x 2xscl des2x des \
bilinear bilinearplus bilinearpp \
hq2xn lq2xn epxb epxc eagle3xb \
flip rotate nearest gs omniscale lanczos
filters: epx kuwahara xbrz hqx lqx xbr \
sai supersai eagle supereagle \
rgb tv advmameinterp scale3x \
magnify amscale horiz vertscan \
reverseaa tvzero \
ultra2x super2x 2xscl des2x des \
bilinear bilinearplus bilinearpp \
hq2xn lq2xn epxb epxc eagle3xb \
flip rotate nearest omniscale lanczos
PixelFilter:
clang++ $(EXEC_FLAGS) PixelFilter.exe PixelFilter.cpp lodepng.cpp $(OPENCV_INCLUDES) $(OPENCV_LIBS)
test:
clang++ $(EXEC_FLAGS) test.exe test.cpp
epx:
clang++ $(CFLAGS_BASE) epx.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++epx.$(FUL_VERSION).dylib epx.o
ln -sf libpixel++epx.$(FUL_VERSION).dylib libpixel++epx.dylib
else
clang++ $(LFLAGS_LIB),libpixel++epx.so.$(MAJ_VERSION) -o libpixel++epx.so.$(FUL_VERSION) epx.o
ln -sf libpixel++epx.so.$(FUL_VERSION) libpixel++epx.so
endif
kuwahara:
clang++ $(CFLAGS_BASE) kuwahara.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++kuwahara.$(FUL_VERSION).dylib kuwahara.o
ln -sf libpixel++kuwahara.$(FUL_VERSION).dylib libpixel++kuwahara.dylib
else
clang++ $(LFLAGS_LIB),libpixel++kuwahara.so.$(MAJ_VERSION) -o libpixel++kuwahara.so.$(FUL_VERSION) kuwahara.o
ln -sf libpixel++kuwahara.so.$(FUL_VERSION) libpixel++kuwahara.so
endif
xbrz:
clang++ $(CFLAGS_BASE) xbrz.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++xbrz.$(FUL_VERSION).dylib xbrz.o
ln -sf libpixel++xbrz.$(FUL_VERSION).dylib libpixel++xbrz.dylib
else
clang++ $(LFLAGS_LIB),libpixel++xbrz.so.$(MAJ_VERSION) -o libpixel++xbrz.so.$(FUL_VERSION) xbrz.o
ln -sf libpixel++xbrz.so.$(FUL_VERSION) libpixel++xbrz.so
endif
hqx:
clang++ $(CFLAGS_BASE) hqnx.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++hqx.$(FUL_VERSION).dylib hqnx.o
ln -sf libpixel++hqx.$(FUL_VERSION).dylib libpixel++hqx.dylib
else
clang++ $(LFLAGS_LIB),libpixel++hqx.so.$(MAJ_VERSION) -o libpixel++hqx.so.$(FUL_VERSION) hqnx.o
ln -sf libpixel++hqx.so.$(FUL_VERSION) libpixel++hqx.so
endif
lqx:
clang++ $(CFLAGS_BASE) lqnx.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++lqx.$(FUL_VERSION).dylib lqnx.o
ln -sf libpixel++lqx.$(FUL_VERSION).dylib libpixel++lqx.dylib
else
clang++ $(LFLAGS_LIB),libpixel++lqx.so.$(MAJ_VERSION) -o libpixel++lqx.so.$(FUL_VERSION) lqnx.o
ln -sf libpixel++lqx.so.$(FUL_VERSION) libpixel++lqx.so
endif
xbr:
clang++ $(CFLAGS_BASE) xbr.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++xbr.$(FUL_VERSION).dylib xbr.o
ln -sf libpixel++xbr.$(FUL_VERSION).dylib libpixel++xbr.dylib
else
clang++ $(LFLAGS_LIB),libpixel++xbr.so.$(MAJ_VERSION) -o libpixel++xbr.so.$(FUL_VERSION) xbr.o
ln -sf libpixel++xbr.so.$(FUL_VERSION) libpixel++xbr.so
endif
sai:
clang++ $(CFLAGS_BASE) 2xsai.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++sai.$(FUL_VERSION).dylib 2xsai.o
ln -sf libpixel++sai.$(FUL_VERSION).dylib libpixel++sai.dylib
else
clang++ $(LFLAGS_LIB),libpixel++sai.so.$(MAJ_VERSION) -o libpixel++sai.so.$(FUL_VERSION) 2xsai.o
ln -sf libpixel++sai.so.$(FUL_VERSION) libpixel++sai.so
endif
supersai:
clang++ $(CFLAGS_BASE) supersai.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++supersai.$(FUL_VERSION).dylib supersai.o
ln -sf libpixel++supersai.$(FUL_VERSION).dylib libpixel++supersai.dylib
else
clang++ $(LFLAGS_LIB),libpixel++supersai.so.$(MAJ_VERSION) -o libpixel++supersai.so.$(FUL_VERSION) supersai.o
ln -sf libpixel++supersai.so.$(FUL_VERSION) libpixel++supersai.so
endif
eagle:
clang++ $(CFLAGS_BASE) eagle.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++eagle.$(FUL_VERSION).dylib eagle.o
ln -sf libpixel++eagle.$(FUL_VERSION).dylib libpixel++eagle.dylib
else
clang++ $(LFLAGS_LIB),libpixel++eagle.so.$(MAJ_VERSION) -o libpixel++eagle.so.$(FUL_VERSION) eagle.o
ln -sf libpixel++eagle.so.$(FUL_VERSION) libpixel++eagle.so
endif
supereagle:
clang++ $(CFLAGS_BASE) supereagle.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++supereagle.$(FUL_VERSION).dylib supereagle.o
ln -sf libpixel++supereagle.$(FUL_VERSION).dylib libpixel++supereagle.dylib
else
clang++ $(LFLAGS_LIB),libpixel++supereagle.so.$(MAJ_VERSION) -o libpixel++supereagle.so.$(FUL_VERSION) supereagle.o
ln -sf libpixel++supereagle.so.$(FUL_VERSION) libpixel++supereagle.so
endif
rgb:
clang++ $(CFLAGS_BASE) rgb.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++rgb.$(FUL_VERSION).dylib rgb.o
ln -sf libpixel++rgb.$(FUL_VERSION).dylib libpixel++rgb.dylib
else
clang++ $(LFLAGS_LIB),libpixel++rgb.so.$(MAJ_VERSION) -o libpixel++rgb.so.$(FUL_VERSION) rgb.o
ln -sf libpixel++rgb.so.$(FUL_VERSION) libpixel++rgb.so
endif
tv:
clang++ $(CFLAGS_BASE) tv.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++tv.$(FUL_VERSION).dylib tv.o
ln -sf libpixel++tv.$(FUL_VERSION).dylib libpixel++tv.dylib
else
clang++ $(LFLAGS_LIB),libpixel++tv.so.$(MAJ_VERSION) -o libpixel++tv.so.$(FUL_VERSION) tv.o
ln -sf libpixel++tv.so.$(FUL_VERSION) libpixel++tv.so
endif
advmameinterp:
clang++ $(CFLAGS_BASE) advmameinterp.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++advmameinterp.$(FUL_VERSION).dylib advmameinterp.o
ln -sf libpixel++advmameinterp.$(FUL_VERSION).dylib libpixel++advmameinterp.dylib
else
clang++ $(LFLAGS_LIB),libpixel++advmameinterp.so.$(MAJ_VERSION) -o libpixel++advmameinterp.so.$(FUL_VERSION) advmameinterp.o
ln -sf libpixel++advmameinterp.so.$(FUL_VERSION) libpixel++advmameinterp.so
endif
scale3x:
clang++ $(CFLAGS_BASE) scale3x.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++scale3x.$(FUL_VERSION).dylib scale3x.o
ln -sf libpixel++scale3x.$(FUL_VERSION).dylib libpixel++scale3x.dylib
else
clang++ $(LFLAGS_LIB),libpixel++scale3x.so.$(MAJ_VERSION) -o libpixel++scale3x.so.$(FUL_VERSION) scale3x.o
ln -sf libpixel++scale3x.so.$(FUL_VERSION) libpixel++scale3x.so
endif
magnify:
clang++ $(CFLAGS_BASE) magnify.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++magnify.$(FUL_VERSION).dylib magnify.o
ln -sf libpixel++magnify.$(FUL_VERSION).dylib libpixel++magnify.dylib
else
clang++ $(LFLAGS_LIB),libpixel++magnify.so.$(MAJ_VERSION) -o libpixel++magnify.so.$(FUL_VERSION) magnify.o
ln -sf libpixel++magnify.so.$(FUL_VERSION) libpixel++magnify.so
endif
amscale:
clang++ $(CFLAGS_BASE) amscale.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++amscale.$(FUL_VERSION).dylib amscale.o
ln -sf libpixel++amscale.$(FUL_VERSION).dylib libpixel++amscale.dylib
else
clang++ $(LFLAGS_LIB),libpixel++amscale.so.$(MAJ_VERSION) -o libpixel++amscale.so.$(FUL_VERSION) amscale.o
ln -sf libpixel++amscale.so.$(FUL_VERSION) libpixel++amscale.so
endif
horiz:
clang++ $(CFLAGS_BASE) horiz.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++horiz.$(FUL_VERSION).dylib horiz.o
ln -sf libpixel++horiz.$(FUL_VERSION).dylib libpixel++horiz.dylib
else
clang++ $(LFLAGS_LIB),libpixel++horiz.so.$(MAJ_VERSION) -o libpixel++horiz.so.$(FUL_VERSION) horiz.o
ln -sf libpixel++horiz.so.$(FUL_VERSION) libpixel++horiz.so
endif
vertscan:
clang++ $(CFLAGS_BASE) vertscan.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++vertscan.$(FUL_VERSION).dylib vertscan.o
ln -sf libpixel++vertscan.$(FUL_VERSION).dylib libpixel++vertscan.dylib
else
clang++ $(LFLAGS_LIB),libpixel++vertscan.so.$(MAJ_VERSION) -o libpixel++vertscan.so.$(FUL_VERSION) vertscan.o
ln -sf libpixel++vertscan.so.$(FUL_VERSION) libpixel++vertscan.so
endif
reverseaa:
clang++ $(CFLAGS_BASE) reverseaa.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++reverseaa.$(FUL_VERSION).dylib reverseaa.o
ln -sf libpixel++reverseaa.$(FUL_VERSION).dylib libpixel++reverseaa.dylib
else
clang++ $(LFLAGS_LIB),libpixel++reverseaa.so.$(MAJ_VERSION) -o libpixel++reverseaa.so.$(FUL_VERSION) reverseaa.o
ln -sf libpixel++reverseaa.so.$(FUL_VERSION) libpixel++reverseaa.so
endif
ultra2x:
clang++ $(CFLAGS_BASE) ultra2x.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++ultra2x.$(FUL_VERSION).dylib ultra2x.o
ln -sf libpixel++ultra2x.$(FUL_VERSION).dylib libpixel++ultra2x.dylib
else
clang++ $(LFLAGS_LIB),libpixel++ultra2x.so.$(MAJ_VERSION) -o libpixel++ultra2x.so.$(FUL_VERSION) ultra2x.o
ln -sf libpixel++ultra2x.so.$(FUL_VERSION) libpixel++ultra2x.so
endif
super2x:
clang++ $(CFLAGS_BASE) super2x.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++super2x.$(FUL_VERSION).dylib super2x.o
ln -sf libpixel++super2x.$(FUL_VERSION).dylib libpixel++super2x.dylib
else
clang++ $(LFLAGS_LIB),libpixel++super2x.so.$(MAJ_VERSION) -o libpixel++super2x.so.$(FUL_VERSION) super2x.o
ln -sf libpixel++super2x.so.$(FUL_VERSION) libpixel++super2x.so
endif
2xscl:
clang++ $(CFLAGS_BASE) 2xscl.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++2xscl.$(FUL_VERSION).dylib 2xscl.o
ln -sf libpixel++2xscl.$(FUL_VERSION).dylib libpixel++2xscl.dylib
else
clang++ $(LFLAGS_LIB),libpixel++2xscl.so.$(MAJ_VERSION) -o libpixel++2xscl.so.$(FUL_VERSION) 2xscl.o
ln -sf libpixel++2xscl.so.$(FUL_VERSION) libpixel++2xscl.so
endif
des2x:
clang++ $(CFLAGS_BASE) des2x.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++des2x.$(FUL_VERSION).dylib des2x.o
ln -sf libpixel++des2x.$(FUL_VERSION).dylib libpixel++des2x.dylib
else
clang++ $(LFLAGS_LIB),libpixel++des2x.so.$(MAJ_VERSION) -o libpixel++des2x.so.$(FUL_VERSION) des2x.o
ln -sf libpixel++des2x.so.$(FUL_VERSION) libpixel++des2x.so
endif
des:
clang++ $(CFLAGS_BASE) des.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++des.$(FUL_VERSION).dylib des.o
ln -sf libpixel++des.$(FUL_VERSION).dylib libpixel++des.dylib
else
clang++ $(LFLAGS_LIB),libpixel++des.so.$(MAJ_VERSION) -o libpixel++des.so.$(FUL_VERSION) des.o
ln -sf libpixel++des.so.$(FUL_VERSION) libpixel++des.so
endif
bilinear:
clang++ $(CFLAGS_BASE) bilinear.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++bilinear.$(FUL_VERSION).dylib bilinear.o
ln -sf libpixel++bilinear.$(FUL_VERSION).dylib libpixel++bilinear.dylib
else
clang++ $(LFLAGS_LIB),libpixel++bilinear.so.$(MAJ_VERSION) -o libpixel++bilinear.so.$(FUL_VERSION) bilinear.o
ln -sf libpixel++bilinear.so.$(FUL_VERSION) libpixel++bilinear.so
endif
bilinearplus:
clang++ $(CFLAGS_BASE) bilinearplus.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++bilinearplus.$(FUL_VERSION).dylib bilinearplus.o
ln -sf libpixel++bilinearplus.$(FUL_VERSION).dylib libpixel++bilinearplus.dylib
else
clang++ $(LFLAGS_LIB),libpixel++bilinearplus.so.$(MAJ_VERSION) -o libpixel++bilinearplus.so.$(FUL_VERSION) bilinearplus.o
ln -sf libpixel++bilinearplus.so.$(FUL_VERSION) libpixel++bilinearplus.so
endif
bilinearpp:
clang++ $(CFLAGS_BASE) bilinearpp.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++bilinearpp.$(FUL_VERSION).dylib bilinearpp.o
ln -sf libpixel++bilinearpp.$(FUL_VERSION).dylib libpixel++bilinearpp.dylib
else
clang++ $(LFLAGS_LIB),libpixel++bilinearpp.so.$(MAJ_VERSION) -o libpixel++bilinearpp.so.$(FUL_VERSION) bilinearpp.o
ln -sf libpixel++bilinearpp.so.$(FUL_VERSION) libpixel++bilinearpp.so
endif
hq2xn:
clang++ $(CFLAGS_BASE) hq2xn.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++hq2xn.$(FUL_VERSION).dylib hq2xn.o
ln -sf libpixel++hq2xn.$(FUL_VERSION).dylib libpixel++hq2xn.dylib
else
clang++ $(LFLAGS_LIB),libpixel++hq2xn.so.$(MAJ_VERSION) -o libpixel++hq2xn.so.$(FUL_VERSION) hq2xn.o
ln -sf libpixel++hq2xn.so.$(FUL_VERSION) libpixel++hq2xn.so
endif
lq2xn:
clang++ $(CFLAGS_BASE) lq2xn.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++lq2xn.$(FUL_VERSION).dylib lq2xn.o
ln -sf libpixel++lq2xn.$(FUL_VERSION).dylib libpixel++lq2xn.dylib
else
clang++ $(LFLAGS_LIB),libpixel++lq2xn.so.$(MAJ_VERSION) -o libpixel++lq2xn.so.$(FUL_VERSION) lq2xn.o
ln -sf libpixel++lq2xn.so.$(FUL_VERSION) libpixel++lq2xn.so
endif
epxb:
clang++ $(CFLAGS_BASE) epxb.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++epxb.$(FUL_VERSION).dylib epxb.o
ln -sf libpixel++epxb.$(FUL_VERSION).dylib libpixel++epxb.dylib
else
clang++ $(LFLAGS_LIB),libpixel++epxb.so.$(MAJ_VERSION) -o libpixel++epxb.so.$(FUL_VERSION) epxb.o
ln -sf libpixel++epxb.so.$(FUL_VERSION) libpixel++epxb.so
endif
epxc:
clang++ $(CFLAGS_BASE) epxc.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++epxc.$(FUL_VERSION).dylib epxc.o
ln -sf libpixel++epxc.$(FUL_VERSION).dylib libpixel++epxc.dylib
else
clang++ $(LFLAGS_LIB),libpixel++epxc.so.$(MAJ_VERSION) -o libpixel++epxc.so.$(FUL_VERSION) epxc.o
ln -sf libpixel++epxc.so.$(FUL_VERSION) libpixel++epxc.so
endif
eagle3xb:
clang++ $(CFLAGS_BASE) eagle3xb.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++eagle3xb.$(FUL_VERSION).dylib eagle3xb.o
ln -sf libpixel++eagle3xb.$(FUL_VERSION).dylib libpixel++eagle3xb.dylib
else
clang++ $(LFLAGS_LIB),libpixel++eagle3xb.so.$(MAJ_VERSION) -o libpixel++eagle3xb.so.$(FUL_VERSION) eagle3xb.o
ln -sf libpixel++eagle3xb.so.$(FUL_VERSION) libpixel++eagle3xb.so
endif
flip:
clang++ $(CFLAGS_BASE) flip.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++flip.$(FUL_VERSION).dylib flip.o
ln -sf libpixel++flip.$(FUL_VERSION).dylib libpixel++flip.dylib
else
clang++ $(LFLAGS_LIB),libpixel++flip.so.$(MAJ_VERSION) -o libpixel++flip.so.$(FUL_VERSION) flip.o
ln -sf libpixel++flip.so.$(FUL_VERSION) libpixel++flip.so
endif
rotate:
clang++ $(CFLAGS_BASE) rotate.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++rotate.$(FUL_VERSION).dylib rotate.o
ln -sf libpixel++rotate.$(FUL_VERSION).dylib libpixel++rotate.dylib
else
clang++ $(LFLAGS_LIB),libpixel++rotate.so.$(MAJ_VERSION) -o libpixel++rotate.so.$(FUL_VERSION) rotate.o
ln -sf libpixel++rotate.so.$(FUL_VERSION) libpixel++rotate.so
endif
nearest:
clang++ $(CFLAGS_BASE) nearest.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++nearest.$(FUL_VERSION).dylib nearest.o
ln -sf libpixel++nearest.$(FUL_VERSION).dylib libpixel++nearest.dylib
else
clang++ $(LFLAGS_LIB),libpixel++nearest.so.$(MAJ_VERSION) -o libpixel++nearest.so.$(FUL_VERSION) nearest.o
ln -sf libpixel++nearest.so.$(FUL_VERSION) libpixel++nearest.so
endif
tvzero:
clang++ $(CFLAGS_BASE) tvzero.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++tvzero.$(FUL_VERSION).dylib tvzero.o
ln -sf libpixel++tvzero.$(FUL_VERSION).dylib libpixel++tvzero.dylib
else
clang++ $(LFLAGS_LIB),libpixel++tvzero.so.$(MAJ_VERSION) -o libpixel++tvzero.so.$(FUL_VERSION) tvzero.o
ln -sf libpixel++tvzero.so.$(FUL_VERSION) libpixel++tvzero.so
endif
gs:
clang++ $(CFLAGS_BASE) gs.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++gs.$(FUL_VERSION).dylib gs.o -lfftw3
ln -sf libpixel++gs.$(FUL_VERSION).dylib libpixel++gs.dylib
else
clang++ $(LFLAGS_LIB),libpixel++gs.so.$(MAJ_VERSION) -o libpixel++gs.so.$(FUL_VERSION) gs.o -lfftw3
ln -sf libpixel++gs.so.$(FUL_VERSION) libpixel++gs.so
endif
omniscale:
clang++ $(CFLAGS_BASE) omniscale.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++omniscale.$(FUL_VERSION).dylib omniscale.o
ln -sf libpixel++omniscale.$(FUL_VERSION).dylib libpixel++omniscale.dylib
else
clang++ $(LFLAGS_LIB),libpixel++omniscale.so.$(MAJ_VERSION) -o libpixel++omniscale.so.$(FUL_VERSION) omniscale.o
ln -sf libpixel++omniscale.so.$(FUL_VERSION) libpixel++omniscale.so
endif
lanczos:
clang++ $(CFLAGS_BASE) lanczos.cpp
ifeq ($(UNAME), Darwin)
clang++ $(LFLAGS_LIB) libpixel++lanczos.$(FUL_VERSION).dylib lanczos.o
ln -sf libpixel++lanczos.$(FUL_VERSION).dylib libpixel++lanczos.dylib
else
clang++ $(LFLAGS_LIB),libpixel++lanczos.so.$(MAJ_VERSION) -o libpixel++lanczos.so.$(FUL_VERSION) lanczos.o
ln -sf libpixel++lanczos.so.$(FUL_VERSION) libpixel++lanczos.so
endif
cleanup:
rm -f *.o
install: all cleanup
clean:
rm -f *.o *.exe *.so *.so.* *.dylib