svn-gvsig-desktop / tags / v1_0_2_Build_914 / libraries / libjni-ecw / makefile.w32 @ 43201
History | View | Annotate | Download (3.34 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 de compresi?n ecw |
7 |
# Purpose: Integraci?n de la libreria de compresi?n ecw en c++ de Ermapper |
8 |
# en el proyecto gvSIG |
9 |
# Author: Ignacio Brodin brodin@telefonica.net |
10 |
# |
11 |
#***************************************************************** |
12 |
#15-2-2007 0.0.2 - Soluciona bug de precisi?n en la llamada setView. |
13 |
# |
14 |
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" |
15 |
DSTNO_LIB = "C:\windows\system32" |
16 |
LIB_EXTERNAS = ../binaries/w32/raster/ecw/NCSEcwC.lib ../binaries/w32/raster/ecw/NCSUtil.lib ../binaries/w32/raster/ecw/NCSEcw.lib |
17 |
|
18 |
#Compiladores y Programas |
19 |
|
20 |
JAVAC = javac |
21 |
JAVAH = javah |
22 |
JAVADOC = javadoc |
23 |
JAR = jar -cvf |
24 |
CC = cl.exe |
25 |
LINK = link.exe |
26 |
|
27 |
VERS = 0.0.2 |
28 |
OBJS = ecw_jni.obj |
29 |
NOM_LIB = jecw |
30 |
LIB = $(NOM_LIB).dll |
31 |
|
32 |
#Directorios |
33 |
|
34 |
DSTNO_LIB = C:\Windows\system32 |
35 |
DISTRIBUCION = ./dist |
36 |
DOCUMENTACION = ./doc |
37 |
INCLUDE = -I./include -I"C:\Archivos de programa\Microsoft Visual Studio .NET 2003\Vc7\include" -I"C:\Archivos de programa\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include" |
38 |
FUENTES = ./src |
39 |
TEST = ./src-test |
40 |
DEST_OBJS = ./bin |
41 |
DISTRIBUCION = ./dist |
42 |
PAQUETE = es.gva.cit |
43 |
RUTA_PAQUETE = com/ermapper |
44 |
RUTA_PAQUETE_WRECW = $(RUTA_PAQUETE)/ecw |
45 |
RUTA_PAQUETE_WRUTIL = $(RUTA_PAQUETE)/util |
46 |
|
47 |
#Ficheros |
48 |
|
49 |
JAR_ECW = $(NOM_LIB)-$(VERS).jar |
50 |
PAQUETE_ECW = com.ermapper.ecw |
51 |
FTE_HEADER_ECW = $(PAQUETE_ECW).JNCSFile |
52 |
|
53 |
#Opciones |
54 |
|
55 |
FLAGS = -c -W3 -G4 -D_X86_=1 -DDLL -DWIN32 -GX -MD -Zi -Od |
56 |
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 $(LIB_EXTERNAS) |
57 |
OPC_LINK = /nologo /dll /machine:I386 /incremental:yes /pdb:"$(NOM_LIB).pdb" /debug /out:"$(NOM_LIB).dll" /implib:"$(NOM_LIB).lib" |
58 |
|
59 |
|
60 |
#*********************************************************************************** |
61 |
|
62 |
default: java $(OBJS) $(LIB) |
63 |
|
64 |
ecw_jni.obj: |
65 |
$(CC) $(FLAGS) -I$(INCLUDE) $(FUENTES)/ecw_jni.c |
66 |
|
67 |
$(LIB): |
68 |
link $(STAT_LIB) $(OPC_LINK) $(LIBR) $(OBJS) |
69 |
move $(NOM_LIB).dll dist |
70 |
move $(NOM_LIB).lib dist |
71 |
move $(NOM_LIB).ilk dist |
72 |
move $(NOM_LIB).exp dist |
73 |
move $(NOM_LIB).pdb dist |
74 |
|
75 |
|
76 |
|
77 |
#******************************************************************************* |
78 |
|
79 |
header: |
80 |
$(JAVAH) -classpath "$(DEST_OBJS)" -d ./include $(FTE_HEADER_ECW) |
81 |
|
82 |
java: |
83 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRUTIL)/*.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
84 |
$(JAVAC) $(FUENTES)/$(RUTA_PAQUETE_WRECW)/*.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
85 |
|
86 |
jar: |
87 |
$(JAR) $(DISTRIBUCION)/$(JAR_ECW) -C $(DEST_OBJS) $(RUTA_PAQUETE) |
88 |
|
89 |
#******************************************************************************* |
90 |
|
91 |
test: |
92 |
$(JAVAC) $(TEST)/*.java -d $(DEST_OBJS) -classpath "$(DEST_OBJS)" |
93 |
|
94 |
#******************************************************************************* |
95 |
|
96 |
install: |
97 |
-copy .\dist\$(LIB) $(DSTNO_LIB) |
98 |
|
99 |
clean: |
100 |
-del *.obj |
101 |
if exist vc70.pdb del vc70.pdb |
102 |
cd dist |
103 |
if exist $(LIB) del $(LIB) |
104 |
-del *.ilk |
105 |
-del *.pdb |
106 |
-del *.lib |
107 |
-del *.exp |
108 |
if exist $(JAR_ECW) del $(JAR_ECW) |
109 |
cd .. |
110 |
cd $(DEST_OBJS)/$(RUTA_PAQUETE_WRECW) |
111 |
-del *.class |
112 |
|
113 |
|
114 |
|