home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / WSTBSK.ZIP / WASTEBSK.MAK < prev    next >
Text File  |  1992-06-07  |  2KB  |  69 lines

  1. #****************************************************************************
  2. #  Dot directive definition area (usually just suffixes)
  3. #****************************************************************************
  4.  
  5. .SUFFIXES: .c .obj .dll .csc .sc .h .ih .ph .psc .rc .res
  6.  
  7. #****************************************************************************
  8. #  Environment Setup for the component(s).
  9. #****************************************************************************
  10.  
  11. SOMTEMP = .\somtemp
  12. SCPATH  = D:\toolkt20\sc
  13. HPATH   = D:\toolkt20\c\os2h
  14. LIBPATH = D:\toolkt20\os2lib
  15.  
  16. !if [set SMINCLUDE=.;$(SCPATH);] || \
  17.     [set SMTMP=$(SOMTEMP)] || \
  18.     [set SMEMIT=ih;h;ph;psc;sc;c;def]
  19. !endif
  20.  
  21. !if [cd $(SOMTEMP)]
  22. !  if [md $(SOMTEMP)]
  23. !    error Error creating $(SOMTEMP) directory
  24. !  endif
  25. !else
  26. !  if [cd ..]
  27. !    error Error could not cd .. from $(SOMTEMP) directory
  28. !  endif
  29. !endif
  30.  
  31. #
  32. # Compiler/tools Macros
  33. #
  34.  
  35. CC         = icc /c /Ge- /Gd- /Se /Re /ss /Ms /Gm+
  36. LINK       = link386
  37. LDFLAGS    = /noi /map /nol /nod /exepack /packcode /packdata /align:16
  38. LIBS       = som.lib os2386.lib DDE4NBS.lib
  39. #****************************************************************************
  40. # Set up Macros that will contain all the different dependencies for the
  41. # executables and dlls etc. that are generated.
  42. #****************************************************************************
  43.  
  44. OBJS       = wastebsk.obj
  45.  
  46. #****************************************************************************
  47. #   Setup the inference rules for compiling source code to
  48. #   object code.
  49. #****************************************************************************
  50.  
  51. .c.obj:
  52.         $(CC) -I$(HPATH) -c $<
  53.  
  54. .csc.c:
  55.         sc  $<
  56.  
  57. all: wastebsk.dll
  58.  
  59. wastebsk.obj: $*.c $*.ih $*.h  $*.sc
  60.  
  61. wastebsk.dll: $(OBJS) wastebsk.res
  62.          $(LINK) $(LDFLAGS) $(OBJS),$@,,$(LIBS),$*;
  63.          rc $*.res $*.dll
  64.          mapsym wastebsk.map
  65.  
  66. wastebsk.res: wastebsk.rc
  67.          rc -r $*.rc $*.res
  68.  
  69.