root / tags / Root_v061 / libraries / libjni-mrsid / makefile.w32 @ 4812
History | View | Annotate | Download (6.39 KB)
1 |
#***************************************************************** |
---|---|
2 |
# |
3 |
# MAKEFILE |
4 |
# $Id: Makefile,v 1.0 2004/11/15 Nacho Brodin |
5 |
# |
6 |
# Project: Wrapper c-java para la libreria mrsid |
7 |
# Purpose: Integraci?n de la libreria mrsid en c++ de Lizartech |
8 |
# en el proyecto gvSIG |
9 |
# Author: Ignacio Brodin - brodin@gva.es |
10 |
# |
11 |
#***************************************************************** |
12 |
|
13 |
G_INCLUDE = "C:\Archivos de programa\Microsoft Visual Studio .NET 2003\Vc7\include" |
14 |
#G_INCLUDE = "D:\Archivos de programa\Microsoft Visual Studio\VC98\Include" |
15 |
LIBR = /LIBPATH:"C:\Archivos de programa\Microsoft Visual Studio .NET 2003\Vc7\lib" /LIBPATH:"C:\Archivos de programa\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib" |
16 |
#LIBR = /LIBPATH:"D:\Archivos de programa\Microsoft Visual Studio\VC98\Lib" |
17 |
DSTNO_LIB = "C:\windows\system32" |
18 |
|
19 |
|
20 |
#Compiladores y aplicaciones |
21 |
|
22 |
JAVAC = javac |
23 |
JAVAH = javah |
24 |
JAR = jar -cvf |
25 |
CC = cl |
26 |
MAKE = nmake |
27 |
VERS = 0.0.1 |
28 |
|
29 |
#Directorios |
30 |
|
31 |
INCLUDES = ./include |
32 |
FUENTES = ./src |
33 |
DEST_OBJS = ./bin |
34 |
DISTRIBUCION = ./dist |
35 |
DIR_TEST = ./src-test |
36 |
RUTA_PAQUETE_WRMRSID = es/gva/cit/jmrsid |
37 |
|
38 |
RUTA_PAQUETE = es/gva/cit |
39 |
DSTNO_LIB = C:\Windows\system32 |
40 |
|
41 |
NOM_LIB = jmrsid |
42 |
LIB = $(NOM_LIB).dll |
43 |
|
44 |
#Opciones |
45 |
|
46 |
FLAGS = /nologo /Ox /MD |
47 |
INSTALL = install_lin |
48 |
OBJS = mrsidimagereader.obj ltiimage.obj ltimetadatadatabase.obj ltipixel.obj ltiscene.obj ltiscenebuffer.obj ltiimagestage.obj ltimetadatarecord.obj ltiutils.obj mrsidimagereaderbase.obj |
49 |
STAT_LIB = kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ../binaries/w32/raster/gdal/gdal.lib ../binaries/w32/raster/mrsid/lti_dsdk_dll.lib ../binaries/w32/raster/mrsid/lti_dsdk_cdll.lib |
50 |
OPC_LINK = /nologo /dll /machine:I386 /incremental:yes /pdb:"$(NOM_LIB).pdb" /debug /out:"$(NOM_LIB).dll" /implib:"$(NOM_LIB).lib" |
51 |
INCLUDE = -I.\include\base -I.\include\writers -I.\include\metadata -I.\include\mrsid_readers -I.\include\j2k_readers -I.\include\support -I.\include |
52 |
|
53 |
FICHERO_JAR_MRSID = $(NOM_LIB)-$(VERS).jar |
54 |
PAQUETE_MRSID = es.gva.cit.jmrsid |
55 |
|
56 |
|
57 |
|
58 |
#*********************************************************************************** |
59 |
|
60 |
default: java jar $(OBJS) libr |
61 |
|
62 |
mrsidimagereader.obj: |
63 |
$(CC) $(FLAGS) $(INCLUDE) -I$(G_INCLUDE) /c $(FUENTES)/mrsidimagereader.cpp |
64 |
|
65 |
ltiimage.obj: |
66 |
$(CC) $(FLAGS) $(INCLUDE) -I$(G_INCLUDE) /c $(FUENTES)/ltiimage.cpp |
67 |
|
68 |
ltimetadatadatabase.obj: |
69 |
$(CC) $(FLAGS) $(INCLUDE) -I$(G_INCLUDE) /c $(FUENTES)/ltimetadatadatabase.cpp |
70 |
|
71 |
ltipixel.obj: |
72 |
$(CC) $(FLAGS) $(INCLUDE) -I$(G_INCLUDE) /c $(FUENTES)/ltipixel.cpp |
73 |
|
74 |
ltiscene.obj: |
75 |
$(CC) $(FLAGS) $(INCLUDE) -I$(G_INCLUDE) /c $(FUENTES)/ltiscene.cpp |
76 |
|
77 |
ltiscenebuffer.obj: |
78 |
$(CC) $(FLAGS) $(INCLUDE) -I$(G_INCLUDE) /c $(FUENTES)/ltiscenebuffer.cpp |
79 |
|
80 |
ltiimagestage.obj: |
81 |
$(CC) $(FLAGS) $(INCLUDE) -I$(G_INCLUDE) /c $(FUENTES)/ltiimagestage.cpp |
82 |
|
83 |
ltimetadatarecord.obj: |
84 |
$(CC) $(FLAGS) $(INCLUDE) -I$(G_INCLUDE) /c $(FUENTES)/ltimetadatarecord.cpp |
85 |
|
86 |
ltiutils.obj: |
87 |
$(CC) $(FLAGS) $(INCLUDE) -I$(G_INCLUDE) /c $(FUENTES)/ltiutils.cpp |
88 |
|
89 |
mrsidimagereaderbase.obj: |
90 |
$(CC) $(FLAGS) $(INCLUDE) -I$(G_INCLUDE) /c $(FUENTES)/mrsidimagereaderbase.cpp |
91 |
|
92 |
libr: |
93 |
link $(STAT_LIB) $(OPC_LINK) $(LIBR) $(OBJS) |
94 |
move $(LIB) dist |
95 |
move $(NOM_LIB).lib dist |
96 |
move $(NOM_LIB).ilk dist |
97 |
move $(NOM_LIB).exp dist |
98 |
move $(NOM_LIB).pdb dist |
99 |
|
100 |
|
101 |
#******************************************************************************* |
102 |
|
103 |
header: |
104 |
$(JAVAH) -classpath "$(DEST_OBJS)" -d $(INCLUDES) $(PAQUETE_MRSID).JNIBase $(PAQUETE_MRSID).MrSIDImageReader \ |
105 |
$(PAQUETE_MRSID).LTIImage $(PAQUETE_MRSID).LTIMetadataDatabase $(PAQUETE_MRSID).LTIPixel $(PAQUETE_MRSID).LTIScene \ |
106 |
$(PAQUETE_MRSID).LTISceneBuffer $(PAQUETE_MRSID).LTIImageStage $(PAQUETE_MRSID).LTIMetadataRecord $(PAQUETE_MRSID).LTIUtils \ |
107 |
$(PAQUETE_MRSID).MrSIDImageReaderBase |
108 |
|
109 |
|
110 |
java: |
111 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/MrSIDException.java -d $(DEST_OBJS) |
112 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIColorSpace.java -d $(DEST_OBJS) |
113 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIDataType.java -d $(DEST_OBJS) |
114 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/JNIBase.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
115 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIPixel.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
116 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTISceneBuffer.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
117 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/StringArray.java $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIScene.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
118 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIMetadataRecord.java $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIMetadataDatabase.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
119 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIGeoCoord.java $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIImage.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
120 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIImageStage.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
121 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIImageReader.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
122 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/MrSIDImageReaderBase.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
123 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/MrSIDImageReader.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
124 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRMRSID)/LTIUtils.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
125 |
|
126 |
|
127 |
#******************************************************************************* |
128 |
|
129 |
|
130 |
jar: |
131 |
$(JAR) $(DISTRIBUCION)/$(FICHERO_JAR_MRSID) -C $(DEST_OBJS) $(RUTA_PAQUETE_WRMRSID) |
132 |
|
133 |
#******************************************************************************* |
134 |
|
135 |
|
136 |
install: |
137 |
-copy $(DISTRIBUCION)\$(LIB) $(DSTNO_LIB) |
138 |
#-copy lib\gdal.dll $(DSTNO_LIB) |
139 |
|
140 |
#******************************************************************************* |
141 |
|
142 |
test: |
143 |
cd $(DIR_TEST) |
144 |
$(MAKE) /f makefile.w32 all |
145 |
cd .. |
146 |
|
147 |
#******************************************************************************* |
148 |
|
149 |
clean: |
150 |
-del *.obj |
151 |
cd dist |
152 |
if exist $(LIB) del $(LIB) |
153 |
if exist $(FICHERO_JAR_MRSID) del $(FICHERO_JAR_MRSID) |
154 |
if exist $(NOM_LIB).ilk del $(NOM_LIB).ilk |
155 |
if exist $(NOM_LIB).pdb del $(NOM_LIB).pdb |
156 |
if exist $(NOM_LIB).lib del $(NOM_LIB).lib |
157 |
if exist $(NOM_LIB).exp del $(NOM_LIB).exp |
158 |
cd .. |
159 |
cd $(DIR_TEST) |
160 |
nmake /f makefile.w32 clean |
161 |
cd .. |
162 |
cd $(DEST_OBJS)/$(RUTA_PAQUETE_WRMRSID) |
163 |
-del *.class |
164 |
|
165 |
|