source: trunk/makefile@ 8

Last change on this file since 8 was 8, checked in by rbri, 15 years ago

makefile

  • Property svn:eol-style set to native
File size: 3.1 KB
Line 
1# ---------------------------------------
2# os2io watcom makefile
3#
4# RBRi 2009
5# ---------------------------------------
6
7
8all : os2io_gc.dll os2io.dll
9
10
11os2io.dll : .SYMBOLIC
12 wpp386 -i$(%JAVA_HOME_13)\include;$(%JAVA_HOME_13)\include\os2; -bd -6s /onatx /oh /oi+ /ei /zp8 /6 /fp6 -fo=.\jni_lib\os2io.obj .\jni_lib\os2io.cpp
13 wlink @.\jni_lib\os2io
14
15
16os2io_gc.dll : .SYMBOLIC
17 wpp386 -i$(%JAVA_HOME_GC_14)\include;$(%JAVA_HOME_GC_14)\include\os2; -bd -6s /onatx /oh /oi+ /ei /zp8 /6 /fp6 -dGoldenCode -fo=.\jni_lib\os2io_gc.obj .\jni_lib\os2io.cpp
18 wlink @.\jni_lib\os2io_gc
19
20
21clean : .SYMBOLIC
22 -del .\jni_lib\*.obj
23
24cleanall : .SYMBOLIC
25 -del /s .\build\13\*.class
26 -del .\jni_lib\*.obj
27 -del os2io.dll
28 -del os2io_gc.dll
29
30# the java part is comatible
31# we are using the 1.3 one
32
33javac : .SYMBOLIC
34 $(%JAVA_HOME_13)\bin\javac -d build\13 src\de\rbri\os2io4j\*.java
35
36jar : .SYMBOLIC
37 $(%JAVA_HOME_13)\bin\javac -d build\13 src\de\rbri\os2io4j\*.java
38 $(%JAVA_HOME_13)\bin\jar cvfm os2io4j.jar .\src\META-INF\MANIFEST.MF -C .\build\13 de\rbri\os2io4j\OS2IO4J.class
39 $(%JAVA_HOME_13)\bin\jar uvf os2io4j.jar -C . os2io.dll
40 $(%JAVA_HOME_13)\bin\jar uvf os2io4j.jar -C . os2io_gc.dll
41
42javah : .SYMBOLIC
43 $(%JAVA_HOME_13)\bin\javac -d build\13 src\de\rbri\os2io4j\*.java
44 $(%JAVA_HOME_13)\bin\javah -classpath .;.\build\13 -force -o .\jni_lib\os2io.h de.rbri.os2io4j.OS2IO4J
45
46
47junit_13 : .SYMBOLIC
48 $(%JAVA_HOME_13)\bin\javac -d build\13 src\de\rbri\os2io4j\*.java
49 $(%JAVA_HOME_13)\bin\javac -classpath .\build\13;.\lib\junit3.8.2\junit.jar; -d build\13 test\de\rbri\os2io4j\*.java
50 $(%JAVA_HOME_13)\jre\bin\java -classpath .\build\13;.\lib\junit3.8.2\junit.jar de.rbri.os2io4j.AllTests
51
52test_13_jar : .SYMBOLIC
53 -del os2io.dll
54 -del os2io_gc.dll
55 $(%JAVA_HOME_13)\jre\bin\java -classpath .\os2io4j.jar;.\lib\junit3.8.2\junit.jar de.rbri.os2io4j.OS2IO4J
56
57junit_14 : .SYMBOLIC
58 $(%JAVA_HOME_13)\bin\javac -d build\13 src\de\rbri\os2io4j\*.java
59 $(%JAVA_HOME_13)\bin\javac -classpath .\build\13;.\lib\junit3.8.2\junit.jar; -d build\13 test\de\rbri\os2io4j\*.java
60 $(%JAVA_HOME_GC_14)\jre\bin\java -classpath .\build\13;.\lib\junit3.8.2\junit.jar de.rbri.os2io4j.AllTests
61 $(%JAVA_HOME_I_14)\jre\bin\java -classpath .\build\13;.\lib\junit3.8.2\junit.jar de.rbri.os2io4j.AllTests
62
63test_14_jar : .SYMBOLIC
64 -del os2io.dll
65 -del os2io_gc.dll
66 $(%JAVA_HOME_GC_14)\jre\bin\java -classpath .\os2io4j.jar;.\lib\junit3.8.2\junit.jar de.rbri.os2io4j.OS2IO4J
67 $(%JAVA_HOME_I_14)\jre\bin\java -classpath .\os2io4j.jar;.\lib\junit3.8.2\junit.jar de.rbri.os2io4j.OS2IO4J
68
69
70release : .SYMBOLIC
71 copy readme .\release
72 copy os2io_gc.dll .\release
73 copy os2io.dll .\release
74
75
76
77# some help
78help : .SYMBOLIC
79 @echo Usage: wmake [target]
80 @echo Where [target] is blank or one of the following:
81 @echo os2io_ibm.dll - to build the os2io_ibm.dll
82 @echo os2io_gc.dll - to build the os2io_gc.dll
83 @echo clean - to erase objectfiles
84 @echo cleanall - to erase target and objectfiles
85
86
87
Note: See TracBrowser for help on using the repository browser.