home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 December / VPR9712B.ISO / Nsos2 / OS2PLUG.EXE / SAMPLE / NPDRAW / makefile < prev    next >
Makefile  |  1996-11-06  |  1KB  |  71 lines

  1. # makefile
  2. #
  3. # The actions included in this make file are:
  4. #  Compile::C++ Compiler
  5. #  Link::Linker
  6.  
  7. COMMON = ..\..\common
  8. NAME = npdraw
  9. CLASS = draw
  10. INCLUDEPATH = ..\..\include
  11.  
  12. .SUFFIXES: .cpp .obj .rc .res
  13.  
  14. .all: \
  15.     $(NAME).dll
  16.  
  17. !if "$(CRT)" == "DYNAMIC"
  18. CRT_TYPE = /Gd+
  19. !else
  20. CRT_TYPE = /Gd- /DSTATIC_LINK
  21. !endif
  22.  
  23. !if "$(OPT)" == "DEBUG"
  24. DEBUG_C_FLAGS = /DDEBUG /Ti+ /O-
  25. DEBUG_L_FLAGS = /de /map
  26. !else
  27. DEBUG_C_FLAGS = /O+
  28. DEBUG_L_FLAGS = /nodebug
  29. !endif
  30.  
  31. #CPP_FLAGS = /Ti /Gm /Gd+ /Ge- /G5 /D_USRDLL /D_MBCS
  32. CPP_FLAGS = $(DEBUG_C_FLAGS) $(CRT_TYPE) /Gm+ /Ge- /D_USRDLL /D_MBCS
  33.  
  34. .cpp.obj:
  35.     @echo " Compile::C++ Compiler "
  36.     icc.exe $(CPP_FLAGS) -Fo$*.obj /I$(INCLUDEPATH) /C /Q %s
  37.  
  38. .rc.res:
  39.     @echo " Compile::Resource Compile "
  40.     rc.exe -i $(INCLUDEPATH) -r $<
  41.  
  42. $(NAME).dll: \
  43.     $(COMMON)\npos2.obj \
  44.     $(NAME).obj \
  45.     $(NAME).res\
  46.     $(NAME).def
  47.     @echo " Link::Linker "
  48.     @icc.exe @<<
  49.      /B" /nologo /noe $(DEBUG_L_FLAGS)"
  50.      /Fe$(NAME).dll
  51.      $(NAME).def
  52.      $(COMMON)\npos2.obj
  53.      $(NAME).obj
  54. <<
  55.   @echo " Compile::Resource Bind "
  56.   rc $*.res $@
  57.  
  58. $(NAME).obj: \
  59.     $(NAME).cpp \
  60.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h \
  61.     {.\;$(INCLUDEPATH);$(INCLUDE);}$(CLASS).h
  62.  
  63. $(COMMON)\npos2.obj: \
  64.     $(COMMON)\npos2.cpp \
  65.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h \
  66.     {.\;$(INCLUDEPATH);$(INCLUDE);}npupp.h
  67.  
  68. $(NAME).res: \
  69.     $(NAME).rc \
  70.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h
  71.