filters: Add Laplace filter and Laplace based Edge Sharpening.
[gfxprim.git] / build / Makefile
blob7ac79b26eb30272e693b277f846fdc1c97745ddd
1 LIB_OBJECTS=$(shell ./get_objs.sh)
3 all: libGP.a libGP.so libGP.so.0
4 .PHONY: libGP.a libGP.so libGP.so.0
6 rebuild: all
8 clean:
9 ifdef VERBOSE
10 rm -rf libGP.a libGP.so libGP.so.0 .lock
11 else
12 @echo "RM libGP.a libGP.so libGP.so.0 .lock"
13 @rm -rf libGP.a libGP.so libGP.so.0 .lock
14 endif
16 libGP.a:
17 @. ./liblock.sh; spinlock .
18 ifdef VERBOSE
19 $(AR) rcs libGP.a $(LIB_OBJECTS)
20 else
21 @echo "AR libGP.a"
22 @$(AR) rcs libGP.a $(LIB_OBJECTS)
23 endif
24 @. ./liblock.sh; spinunlock .
26 libGP.so:
27 @. ./liblock.sh; spinlock .
28 ifdef VERBOSE
29 $(CC) -fPIC -dPIC --shared -Wl,-soname -Wl,libGP.so.0 $(LIB_OBJECTS) -o libGP.so
30 else
31 @echo "LD libGP.so"
32 @$(CC) -fPIC -dPIC --shared -Wl,-soname -Wl,libGP.so.0 $(LIB_OBJECTS) -o libGP.so
33 endif
34 @. ./liblock.sh; spinunlock .
36 libGP.so.0: libGP.so
37 @. ./liblock.sh; spinlock .
38 ifdef VERBOSE
39 rm -f libGP.so.0
40 ln -s libGP.so libGP.so.0
41 else
42 @echo "LN libGP.so.0"
43 @rm -f libGP.so.0
44 @ln -s libGP.so libGP.so.0
45 endif
46 @. ./liblock.sh; spinunlock .