1 
   2 CFLAGS =        -nologo
   3 OBJS =          myfile.obj
   4 HEADERS =       MyCanvas.h
   5 CLASSES =       MyCanvas.class
   6 
   7 DEL =           del /Q
   8 LINK =          link
   9 
  10 INCLUDES =      -I$(TESTJAVA)\include\win32 -I$(TESTJAVA)\include
  11 
  12 LIBS =          gdi32.lib user32.lib $(TESTJAVA)\lib\jawt.lib
  13 
  14 all:            $(CLASSES) mylib.dll
  15 
  16 mylib.dll: $(HEADERS) $(OBJS) 
  17         $(LINK) -nologo -dll -out:mylib.dll $(OBJS) $(LIBS)
  18 
  19 myfile.obj: $(TESTSRC)\myfile.cpp
  20         $(CC) $(CFLAGS) $(INCLUDES) -c $(TESTSRC)\myfile.cpp
  21 
  22 clean:
  23         $(DEL) mylib.* 
  24         $(DEL) $(HEADERS) $(CLASSES)
  25         $(DEL) *.obj