home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 December / VPR9712B.ISO / Nsos2 / OS2PLUG.EXE / SAMPLE / NPSHELL / makefile next >
Makefile  |  1996-11-06  |  1KB  |  69 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 = npshell
  9. INCLUDEPATH = ..\..\include
  10.  
  11. .SUFFIXES: .cpp .obj .rc .res
  12.  
  13. .all: \
  14.     $(NAME).dll
  15.  
  16. !if "$(CRT)" == "DYNAMIC"
  17. CRT_TYPE = /Gd+
  18. !else
  19. CRT_TYPE = /Gd- /DSTATIC_LINK
  20. !endif
  21.  
  22. !if "$(OPT)" == "DEBUG"
  23. DEBUG_C_FLAGS = /DDEBUG /Ti+ /O-
  24. DEBUG_L_FLAGS = /de /map
  25. !else
  26. DEBUG_C_FLAGS = /O+
  27. DEBUG_L_FLAGS = /nodebug
  28. !endif
  29.  
  30. #CPP_FLAGS = /Ti /Gm /Gd+ /Ge- /G5 /D_USRDLL /D_MBCS
  31. CPP_FLAGS = $(DEBUG_C_FLAGS) $(CRT_TYPE) /Gm+ /Ge- /D_USRDLL /D_MBCS
  32.  
  33. .cpp.obj:
  34.     @echo " Compile::C++ Compiler "
  35.     icc.exe $(CPP_FLAGS) -Fo$*.obj /I$(INCLUDEPATH) /C /Q %s
  36.  
  37. .rc.res:
  38.     @echo " Compile::Resource Compile "
  39.     rc.exe -i $(INCLUDEPATH) -r $<
  40.  
  41. $(NAME).dll: \
  42.     $(COMMON)\npos2.obj \
  43.     $(NAME).obj \
  44.     $(NAME).res\
  45.     $(NAME).def
  46.     @echo " Link::Linker "
  47.     @icc.exe @<<
  48.      /B" /nologo /noe $(DEBUG_L_FLAGS)"
  49.      /Fe$(NAME).dll
  50.      $(NAME).def
  51.      $(COMMON)\npos2.obj
  52.      $(NAME).obj
  53. <<
  54.   @echo " Compile::Resource Bind "
  55.   rc $*.res $@
  56.  
  57. $(NAME).obj: \
  58.     $(NAME).cpp \
  59.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h
  60.  
  61. $(COMMON)\npos2.obj: \
  62.     $(COMMON)\npos2.cpp \
  63.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h \
  64.     {.\;$(INCLUDEPATH);$(INCLUDE);}npupp.h
  65.  
  66. $(NAME).res: \
  67.     $(NAME).rc \
  68.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h
  69.