home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia: Special Games / INFESPGAMES.mdf / os2 / ribble / support / makefile < prev    next >
Encoding:
Makefile  |  1994-08-08  |  1.3 KB  |  56 lines

  1. .SUFFIXES: .cpp .dll
  2.  
  3. SUPPORT_SRC_DIR  = \src\support\     #
  4. SUPPORT_INCL_DIR = \src\support\     #
  5.  
  6. SUPPORT_INCL = \
  7.  $(SUPPORT_INCL_DIR)cassert.h     \
  8.  $(SUPPORT_INCL_DIR)CSTRNG.H      \
  9.  $(SUPPORT_INCL_DIR)cthread.h     \
  10.  $(SUPPORT_INCL_DIR)CUMtxSem.h    \
  11.  $(SUPPORT_INCL_DIR)makepath.h    
  12.  
  13. SUPPORT_OBJS = \
  14.  cff.obj       \
  15.  cstrng.obj    \
  16.  cassert.obj   \
  17.  fpgline.obj   \
  18.  cumtxsem.obj  \
  19.  cthread.obj   \
  20.  makepath.obj  \
  21.  cbr.obj
  22.  
  23. SUPPORT_REALDEF =  \
  24.  $(SUPPORT_SRC_DIR)supportdef
  25.  
  26. SUPPORT_DEF =  \
  27.  support.def
  28.  
  29. SUPPORT_LIBS = 
  30.  
  31. OPT_FLAG = #-O -Oi -Os
  32. DEB_FLAG = -Ti
  33. DEBC_FLAG = $(DEB_FLAG) $(OPT_FLAG) -D_CSET2=1 -Ft+ -Gd+ -Wall -Wcls- -Wgnr- -Wvft-
  34. DEBL_FLAG = /de 
  35.  
  36. SUPPORT_COPT    = $(DEBC_FLAG) -I\src\support -J- -Q -Fi -Si -Gm+ -Ge- -D_MAKE_SUPPORTDLL_=1
  37. SUPPORT_LINKOPT = -Tdp -B" $(DEBL_FLAG) /noi /noe /nologo /m:full"
  38.  
  39. all: support.lib
  40.  
  41. support.lib: support.dll
  42.   implib /NOI /NOL $@ support.dll
  43.  
  44. support.dll: $(SUPPORT_OBJS)
  45.   copy $(SUPPORT_REALDEF) $(SUPPORT_DEF)
  46.   cppfilt /B /X /Q $(SUPPORT_OBJS) >>$(SUPPORT_DEF)
  47.   icc $(SUPPORT_COPT) $(SUPPORT_LINKOPT) -Fe$@ $(SUPPORT_OBJS) $(SUPPORT_DEF) $(SUPPORT_LIBS) 2>&1 | ggrep -v conflict
  48.   cppfilt /q $*.map >filtered.map
  49.   mv filtered.map $*.map
  50.  
  51. $(SUPPORT_OBJS) : $(SUPPORT_INCL)
  52.  
  53. {$(SUPPORT_SRC_DIR)}.cpp.obj:
  54.   icc $(SUPPORT_COPT) -c $<
  55.  
  56.