home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
inprise
/
JSAMPLES.Z
/
makefile
< prev
next >
Wrap
Makefile
|
1998-05-08
|
661b
|
34 lines
!if !$d(JAVA_HOME)
JAVA_HOME = ..\..\..\..\..\java
!endif
DLL_NAME = native.dll
CLASS_NAME = NativeExample
IMPL_NAME = NativeExampleImpl
RM=del /q /f
BCC=bcc32
CFLAGS=-v
BCJ=$(JAVA_HOME)\..\bin\bcj
all: Fibonacci.class $(CLASS_NAME).class $(DLL_NAME)
clean:
$(RM) *.class *.obj $(DLL_NAME)
.java.class:
$(BCJ) -classpath $(JAVA_HOME)\classes;$(JAVA_HOME)\lib\classes.zip {$< }
.c.obj:
$(BCC) $(CFLAGS) -I..;$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32 -a4 -c {$< }
# -a4: dword alignment
OBJS = \
$(IMPL_NAME).obj
$(DLL_NAME): $(OBJS)
$(BCC) $(CFLAGS) -tWD -e$(DLL_NAME) $(OBJS) bccjavai.lib