home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / npmeta.zip / MAKEFILE next >
Text File  |  1997-06-29  |  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 = npmeta
  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.      pprintf.obj
  54. <<
  55.   @echo " Compile::Resource Bind "
  56.   rc $*.res $@
  57.  
  58. $(NAME).obj: \
  59.     $(NAME).cpp \
  60.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h \
  61.  
  62. $(COMMON)\npos2.obj: \
  63.     $(COMMON)\npos2.cpp \
  64.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h \
  65.     {.\;$(INCLUDEPATH);$(INCLUDE);}npupp.h
  66.  
  67. $(NAME).res: \
  68.     $(NAME).rc \
  69.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h
  70.  
  71.