home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 October / PCWorld_1998-10_cd.bin / software / prehled / inprise / JSAMPLES.Z / makefile < prev    next >
Makefile  |  1998-05-08  |  661b  |  34 lines

  1. !if !$d(JAVA_HOME)
  2. JAVA_HOME = ..\..\..\..\..\java
  3. !endif
  4.  
  5. DLL_NAME = native.dll
  6.  
  7. CLASS_NAME = NativeExample
  8.  
  9. IMPL_NAME = NativeExampleImpl
  10.  
  11. RM=del /q /f
  12. BCC=bcc32
  13. CFLAGS=-v
  14. BCJ=$(JAVA_HOME)\..\bin\bcj
  15.  
  16. all: Fibonacci.class $(CLASS_NAME).class $(DLL_NAME)
  17.  
  18. clean:
  19.     $(RM) *.class *.obj $(DLL_NAME)
  20.  
  21. .java.class:
  22.     $(BCJ) -classpath $(JAVA_HOME)\classes;$(JAVA_HOME)\lib\classes.zip {$< }
  23.  
  24. .c.obj:
  25.     $(BCC) $(CFLAGS) -I..;$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32 -a4 -c {$< }
  26.  
  27. # -a4: dword alignment
  28.  
  29. OBJS =            \
  30.     $(IMPL_NAME).obj
  31.  
  32. $(DLL_NAME): $(OBJS)
  33.     $(BCC) $(CFLAGS) -tWD -e$(DLL_NAME) $(OBJS) bccjavai.lib
  34.