1 
   2 CFLAGS =        
   3 OBJS =          myfile.o
   4 HEADERS =       MyCanvas.h
   5 CLASSES =       MyCanvas.class
   6 
   7 JAVA =          $(TESTJAVA)/bin/java -classpath .
   8 JAVAC =         $(TESTJAVA)/bin/javac
   9 JAVAH =         $(TESTJAVA)/bin/javah
  10 DEL =           rm -rf
  11 LINK =          $(CC)
  12 
  13 INCLUDES =      -I $(TESTJAVA)/include/win32 -I $(TESTJAVA)/include -I .
  14 
  15 LIBS =          $(TESTJAVA)/lib/jawt.lib -lgdi32
  16 
  17 all:            $(CLASSES) mylib.dll
  18 
  19 mylib.dll: $(HEADERS) $(OBJS) 
  20         $(LINK) -shared -o mylib.dll $(OBJS) $(LIBS) 
  21 
  22 myfile.o: myfile.cpp
  23         $(CC) $(CFLAGS)  $(INCLUDES) -c myfile.cpp
  24 
  25 clean:
  26         $(DEL) mylib.* *.h *.class *.o
  27