aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/openjpeg-libsl/Makefile
diff options
context:
space:
mode:
authordan miller2007-10-18 08:22:34 +0000
committerdan miller2007-10-18 08:22:34 +0000
commit7544acbe604ca4fff9db92bc5b40205c83300211 (patch)
tree30537b94adaccc17eeb741e8b703af69d5087c91 /libraries/openjpeg-libsl/Makefile
parentputting openjpeg-libsl source in /libraries; updating binaries (diff)
downloadopensim-SC-7544acbe604ca4fff9db92bc5b40205c83300211.zip
opensim-SC-7544acbe604ca4fff9db92bc5b40205c83300211.tar.gz
opensim-SC-7544acbe604ca4fff9db92bc5b40205c83300211.tar.bz2
opensim-SC-7544acbe604ca4fff9db92bc5b40205c83300211.tar.xz
hmm... trying again to get everything committed
Diffstat (limited to '')
-rw-r--r--libraries/openjpeg-libsl/Makefile66
-rw-r--r--libraries/openjpeg-libsl/Makefile.osx57
2 files changed, 123 insertions, 0 deletions
diff --git a/libraries/openjpeg-libsl/Makefile b/libraries/openjpeg-libsl/Makefile
new file mode 100644
index 0000000..9912759
--- /dev/null
+++ b/libraries/openjpeg-libsl/Makefile
@@ -0,0 +1,66 @@
1# Linux makefile for OpenJPEG
2
3VER_MAJOR = 2
4VER_MINOR = 1.2.0
5
6SRCS = ./libopenjpeg/bio.c ./libopenjpeg/cio.c ./libopenjpeg/dwt.c ./libopenjpeg/event.c ./libopenjpeg/image.c ./libopenjpeg/j2k.c ./libopenjpeg/j2k_lib.c ./libopenjpeg/jp2.c ./libopenjpeg/jpt.c ./libopenjpeg/mct.c ./libopenjpeg/mqc.c ./libopenjpeg/openjpeg.c ./libopenjpeg/pi.c ./libopenjpeg/raw.c ./libopenjpeg/t1.c ./libopenjpeg/t2.c ./libopenjpeg/tcd.c ./libopenjpeg/tgt.c
7CPPSRCS = ./libsl/libsl.cpp
8INCLS = ./libopenjpeg/bio.h ./libopenjpeg/cio.h ./libopenjpeg/dwt.h ./libopenjpeg/event.h ./libopenjpeg/fix.h ./libopenjpeg/image.h ./libopenjpeg/int.h ./libopenjpeg/j2k.h ./libopenjpeg/j2k_lib.h ./libopenjpeg/jp2.h ./libopenjpeg/jpt.h ./libopenjpeg/mct.h ./libopenjpeg/mqc.h ./libopenjpeg/openjpeg.h ./libopenjpeg/pi.h ./libopenjpeg/raw.h ./libopenjpeg/t1.h ./libopenjpeg/t2.h ./libopenjpeg/tcd.h ./libopenjpeg/tgt.h ./libopenjpeg/opj_includes.h ./libsl/libsl.h
9INCLUDE = -Ilibopenjpeg
10
11# General configuration variables:
12CC = gcc
13AR = ar
14
15# Converts cr/lf to just lf
16DOS2UNIX = dos2unix
17
18COMPILERFLAGS = -O3 -fPIC
19LIBRARIES = -lstdc++
20
21MODULES = $(SRCS:.c=.o)
22CPPMODULES = $(CPPSRCS:.cpp=.o)
23CFLAGS = $(COMPILERFLAGS) $(INCLUDE)
24
25TARGET = openjpeg-libsl
26SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).so
27LIBNAME = lib$(TARGET).so.$(VER_MAJOR)
28
29
30default: all
31
32all: OpenJPEG
33
34dist: OpenJPEG
35 install -d ../bin
36 cp $(SHAREDLIB) ../bin/
37
38dos2unix:
39 @$(DOS2UNIX) $(SRCS) $(INCLS)
40
41OpenJPEG: $(SHAREDLIB)
42
43$(MODULES): %.o: %.c
44 $(CC) $(CFLAGS) -c $< -o $@
45
46$(CPPMODULES): %.o: %.cpp
47 $(CC) $(CFLAGS) -c $< -o $@
48
49$(SHAREDLIB): $(MODULES) $(CPPMODULES)
50 $(CC) -s -shared -Wl,-soname,$(LIBNAME) -o $@ $(MODULES) $(CPPMODULES) $(LIBRARIES)
51
52install: OpenJPEG
53 install -d ../bin
54 cp $(SHAREDLIB) ../bin/
55
56clean:
57 rm -rf core dist/ u2dtmp* $(MODULES) $(CPPMODULES) $(SHAREDLIB) $(LIBNAME)
58
59osx:
60 make -f Makefile.osx
61
62osxinstall:
63 make -f Makefile.osx install
64
65osxclean:
66 make -f Makefile.osx clean \ No newline at end of file
diff --git a/libraries/openjpeg-libsl/Makefile.osx b/libraries/openjpeg-libsl/Makefile.osx
new file mode 100644
index 0000000..5d2a5c6
--- /dev/null
+++ b/libraries/openjpeg-libsl/Makefile.osx
@@ -0,0 +1,57 @@
1# MacOSX makefile for OpenJPEG
2
3VER_MAJOR = 2
4VER_MINOR = 1.2.0
5
6SRCS = ./libopenjpeg/bio.c ./libopenjpeg/cio.c ./libopenjpeg/dwt.c ./libopenjpeg/event.c ./libopenjpeg/image.c ./libopenjpeg/j2k.c ./libopenjpeg/j2k_lib.c ./libopenjpeg/jp2.c ./libopenjpeg/jpt.c ./libopenjpeg/mct.c ./libopenjpeg/mqc.c ./libopenjpeg/openjpeg.c ./libopenjpeg/pi.c ./libopenjpeg/raw.c ./libopenjpeg/t1.c ./libopenjpeg/t2.c ./libopenjpeg/tcd.c ./libopenjpeg/tgt.c
7CPPSRCS = ./libsl/libsl.cpp
8INCLS = ./libopenjpeg/bio.h ./libopenjpeg/cio.h ./libopenjpeg/dwt.h ./libopenjpeg/event.h ./libopenjpeg/fix.h ./libopenjpeg/image.h ./libopenjpeg/int.h ./libopenjpeg/j2k.h ./libopenjpeg/j2k_lib.h ./libopenjpeg/jp2.h ./libopenjpeg/jpt.h ./libopenjpeg/mct.h ./libopenjpeg/mqc.h ./libopenjpeg/openjpeg.h ./libopenjpeg/pi.h ./libopenjpeg/raw.h ./libopenjpeg/t1.h ./libopenjpeg/t2.h ./libopenjpeg/tcd.h ./libopenjpeg/tgt.h ./libopenjpeg/opj_includes.h ./libsl/libsl.h
9INCLUDE = -Ilibopenjpeg
10
11# General configuration variables:
12CC = gcc
13
14
15LIBTOOLSTAT = libtool
16LIBTOOLDYN = gcc
17
18COMPILERFLAGS = -O3 -fPIC
19LIBRARIES = -lstdc++
20
21MODULES = $(SRCS:.c=.o)
22CPPMODULES = $(CPPSRCS:.cpp=.o)
23CFLAGS = $(COMPILERFLAGS) $(INCLUDE)
24
25TARGET = openjpeg-libsl
26SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).dylib
27LIBNAME = lib$(TARGET).dylib
28
29
30default: all
31
32all: OpenJPEG
33
34dist: OpenJPEG
35 install -d ../bin
36 cp $(SHAREDLIB) ../bin/
37
38dos2unix:
39 @$(DOS2UNIX) $(SRCS) $(INCLS)
40
41OpenJPEG: $(SHAREDLIB)
42
43.c.o:
44 $(CC) $(CFLAGS) -c $< -o $@
45
46.cpp.o:
47 $(CC) $(CFLAGS) -c $< -o $@
48
49$(SHAREDLIB): $(MODULES) $(CPPMODULES)
50 $(LIBTOOLDYN) -dynamiclib -o $@ $(MODULES) $(CPPMODULES) $(LIBRARIES)
51
52install:
53 install -d ../bin
54 cp $(SHAREDLIB) ../bin/
55
56clean:
57 rm -rf core dist/ u2dtmp* $(MODULES) $(CPPMODULES) $(SHAREDLIB) $(LIBNAME)