home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / os2plug.exe / SAMPLE / NPCLOCK / makefile < prev    next >
Makefile  |  1996-11-06  |  2KB  |  80 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 = npclock
  9. CLASS = clock
  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.     $(CLASS).obj \
  46.     $(NAME).res\
  47.     $(NAME).def
  48.     @echo " Link::Linker "
  49.     @icc.exe @<<
  50.      /B" /nologo /noe $(DEBUG_L_FLAGS)"
  51.      /Fe$(NAME).dll
  52.      $(NAME).def
  53.      $(COMMON)\npos2.obj
  54.      $(NAME).obj
  55.      $(CLASS).obj
  56. <<
  57.   @echo " Compile::Resource Bind "
  58.   rc $*.res $@
  59.  
  60. $(NAME).obj: \
  61.     $(NAME).cpp \
  62.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h \
  63.     {.\;$(INCLUDEPATH);$(INCLUDE);}$(CLASS).hpp \
  64.     {.\;$(INCLUDEPATH);$(INCLUDE);}$(CLASS).h
  65.  
  66. $(CLASS).obj: \
  67.     $(CLASS).cpp \
  68.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h \
  69.     {.\;$(INCLUDEPATH);$(INCLUDE);}$(CLASS).hpp \
  70.     {.\;$(INCLUDEPATH);$(INCLUDE);}$(CLASS).h
  71.  
  72. $(COMMON)\npos2.obj: \
  73.     $(COMMON)\npos2.cpp \
  74.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h \
  75.     {.\;$(INCLUDEPATH);$(INCLUDE);}npupp.h
  76.  
  77. $(NAME).res: \
  78.     $(NAME).rc \
  79.     {.\;$(INCLUDEPATH);$(INCLUDE);}npapi.h
  80.