svn-gvsig-desktop / tags / v1_9_Build_1223 / libraries / libjni-readecw-linux / makefile.w32 @ 36455
History | View | Annotate | Download (3.24 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 |
|
13 |
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" |
14 |
DSTNO_LIB = "C:\windows\system32" |
15 |
LIB_EXTERNAS = ./lib/NCSEcwC.lib ./lib/NCSUtil.lib ./lib/NCSEcw.lib |
16 |
|
17 |
#Compiladores y Programas |
18 |
|
19 |
JAVAC = javac |
20 |
JAVAH = javah |
21 |
JAVADOC = javadoc |
22 |
JAR = jar -cvf |
23 |
CC = cl.exe |
24 |
LINK = link.exe |
25 |
|
26 |
OBJS = ecw_jni.obj |
27 |
NOM_LIB = jecw |
28 |
LIB = $(NOM_LIB).dll |
29 |
|
30 |
#Directorios |
31 |
|
32 |
DSTNO_LIB = C:\Windows\system32 |
33 |
DISTRIBUCION = ./dist |
34 |
DOCUMENTACION = ./doc |
35 |
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" |
36 |
FUENTES = ./src |
37 |
TEST = ./src-test |
38 |
DEST_OBJS = ./bin |
39 |
DISTRIBUCION = ./dist |
40 |
PAQUETE = es.gva.cit |
41 |
RUTA_PAQUETE = com/ermapper |
42 |
RUTA_PAQUETE_WRECW = $(RUTA_PAQUETE)/ecw |
43 |
RUTA_PAQUETE_WRUTIL = $(RUTA_PAQUETE)/util |
44 |
|
45 |
#Ficheros |
46 |
|
47 |
FICHERO_JAR_ECWC = $(NOM_LIB).jar |
48 |
JAR_ECW = $(NOM_LIB).jar |
49 |
PAQUETE_ECW = com.ermapper.ecw |
50 |
FTE_HEADER_ECW = $(PAQUETE_ECW).JNCSFile |
51 |
|
52 |
#Opciones |
53 |
|
54 |
FLAGS = -c -W3 -G4 -D_X86_=1 -DDLL -DWIN32 -GX -MD -Zi -Od |
55 |
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) |
56 |
OPC_LINK = /nologo /dll /machine:I386 /incremental:yes /pdb:"$(NOM_LIB).pdb" /debug /out:"$(NOM_LIB).dll" /implib:"$(NOM_LIB).lib" |
57 |
VERS = 0.0.0 |
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 |
|