home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / drgwps.zip / makefile < prev    next >
Makefile  |  1993-08-02  |  3KB  |  77 lines

  1. ###########################################################################
  2. #                                                                         #
  3. # MAKE FILE FOR DRGPMWPS.EXE                                              #
  4. #                                                                         #
  5. # NOTES:                                                                  #
  6. #                                                                         #
  7. #  To enable the C Set/2 memory management debugging code, uncomment the  #
  8. #  DEBUGALLOC macro. The debugging info will be sent to DRGPMWPS.DBG.     #
  9. #                                                                         #
  10. #  This makefile creates DRGPMWPS.EXE and DRGAGENT.DLL                    #
  11. #                                                                         #
  12. # HISTORY:                                                                #
  13. #                                                                         #
  14. #  08-01-93 - started coding.                                             #
  15. #                                                                         #
  16. #  Rick Fishman                                                           #
  17. #  Code Blazers, Inc.                                                     #
  18. #  4113 Apricot                                                           #
  19. #  Irvine, CA. 92720                                                      #
  20. #  CIS ID: 72251,750                                                      #
  21. #                                                                         #
  22. ###########################################################################
  23.  
  24. #DEBUGALLOC=-D__DEBUG_ALLOC__
  25.  
  26. # /Kc not included because the SOM headers cause lots of messages
  27. # saying includes defined more than once
  28.  
  29. EXECFLAGS = /Q+ /Ss /Kbcepr /Wuse-par- /Ge+ /Gd- /Gm+ /Ti /C
  30. DLLCFLAGS = /Q+ /Ss /Kbepr /Wuse-par- /Ge- /Gd- /Gm+ /Ti /C
  31. LFLAGS = /noe /noi /map /nol /exepack /packcode /packdata /DE /align:16
  32. LIBS   = som.lib os2386.lib
  33.  
  34. .SUFFIXES: .csc .c .obj .dll .sc .h .ih .ph .psc .rc .res
  35.  
  36. BASE=drgpmwps
  37. BASEOBJS =$(BASE).obj drag.obj commdata.obj heap.obj
  38. BASELOBJS=$(BASEOBJS:.obj=)
  39.  
  40. WPSDLL=drgagent
  41. WPSOBJS =$(WPSDLL).obj commwin.obj commdata.obj heap.obj
  42. WPSLOBJS=$(WPSOBJS:.obj=)
  43.  
  44. all: $(WPSDLL).dll $(BASE).exe
  45.  
  46. .csc.c:
  47.     sc $<
  48.  
  49. .c.obj:
  50.     icc $(DLLCFLAGS) $<
  51.  
  52. $(WPSDLL).dll: $(WPSOBJS) $(WPSDLL).res
  53.     link386 $(LFLAGS) $(WPSLOBJS) printf,$@,,$(LIBS),$*
  54.     rc $*.res $@
  55.  
  56. $(WPSDLL).res: $(WPSDLL).rc $(WPSDLL).rh
  57.     rc -r $*
  58.  
  59. $(BASE).exe: $(BASEOBJS) $(BASE).res $(BASE).def
  60.     link386 $(LFLAGS) $(BASELOBJS),,, os2386, $*
  61.     rc $*.res $@
  62.  
  63. $(BASE).res: $(BASE).rc
  64.     rc -r $*
  65.  
  66. $(WPSDLL).c: $(WPSDLL).csc
  67.  
  68. $(BASE).obj:   $(BASE).c $(BASE).h common.h makefile
  69.     icc $(EXECFLAGS) $*.c
  70.  
  71. $(WPSDLL).obj: $(WPSDLL).c $(WPSDLL).rh common.h makefile
  72. drag.obj:      drag.c $(BASE).h common.h makefile
  73. heap.obj:      heap.c common.h makefile
  74. commwin.obj:   commwin.c common.h makefile
  75. commdata.obj:  commdata.c common.h makefile
  76.  
  77.