home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / emxtutor.zip / emxsrcd1.zip / emx / src / pmgdb / makefile < prev    next >
Makefile  |  1996-09-08  |  4KB  |  115 lines

  1. #
  2. # /emx/src/pmgdb/makefile
  3. #
  4. # Copyright (c) 1996 Eberhard Mattes
  5. #
  6. # This file is part of pmgdb.
  7. #
  8. # pmgdb is free software; you can redistribute it and/or modify it
  9. # under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. #
  13. # pmgdb is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with pmgdb; see the file COPYING.  If not, write to the
  20. # the Free Software Foundation, 59 Temple Place - Suite 330,
  21. # Boston, MA 02111-1307, USA.
  22. #
  23.  
  24. BIN=\emx\bin\ #
  25. HELP=\emx\help\ #
  26. CC=gcc -g -O2 -Zmt -Wall
  27.  
  28. OBJ=pmgdb.o pmtty.o pmtxt.o pmframe.o source.o srcfiles.o command.o \
  29.         breakpoi.o display.o threads.o register.o annotati.o \
  30.         capture.o gdbio.o pmdebug.o pmapp.o string.o
  31.  
  32. default: $(BIN)pmgdb.exe $(HELP)pmgdb.hlp
  33.  
  34. $(BIN)pmgdb.exe:    $(OBJ) pmgdb.def pmgdb.res
  35.     $(CC) -o pmgdb $(OBJ) pmgdb.def -Zsmall-conv
  36.     emxbind -b -s -o$(BIN)pmgdb.exe -rpmgdb.res -dpmgdb.def pmgdb
  37.  
  38. pmgdb.o:    pmgdb.cc string.h pmapp.h pmframe.h pmtxt.h pmtty.h \
  39.         breakpoi.h source.h command.h pmgdb.h
  40.     $(CC) -c pmgdb.cc
  41.  
  42. command.o:    command.cc string.h pmapp.h pmframe.h pmtxt.h pmtty.h \
  43.         breakpoi.h display.h threads.h register.h source.h srcfiles.h \
  44.         annotati.h capture.h gdbio.h command.h pmdebug.h pmgdb.h help.h
  45.     $(CC) -c command.cc
  46.  
  47. source.o:    source.cc string.h pmapp.h pmframe.h pmtxt.h pmtty.h \
  48.         breakpoi.h display.h source.h annotati.h capture.h \
  49.         gdbio.h command.h pmgdb.h help.h
  50.     $(CC) -c source.cc
  51.  
  52. srcfiles.o:    srcfiles.cc string.h pmapp.h pmframe.h pmtxt.h pmtty.h \
  53.         breakpoi.h srcfiles.h command.h pmgdb.h help.h
  54.     $(CC) -c srcfiles.cc
  55.  
  56. breakpoi.o:    breakpoi.cc string.h pmapp.h pmframe.h pmtxt.h pmtty.h \
  57.         breakpoi.h srcfiles.h annotati.h capture.h gdbio.h command.h \
  58.         pmgdb.h help.h
  59.     $(CC) -c breakpoi.cc
  60.  
  61. display.o:    display.cc string.h pmapp.h pmframe.h pmtxt.h pmtty.h \
  62.         breakpoi.h display.h annotati.h capture.h gdbio.h command.h \
  63.         pmgdb.h help.h
  64.     $(CC) -c display.cc
  65.  
  66. threads.o:    threads.cc string.h pmapp.h pmframe.h pmtxt.h pmtty.h \
  67.         breakpoi.h threads.h annotati.h gdbio.h command.h \
  68.         pmgdb.h help.h
  69.     $(CC) -c threads.cc
  70.  
  71. register.o:    register.cc string.h pmapp.h pmframe.h pmtxt.h pmtty.h \
  72.         breakpoi.h register.h pmgdb.h help.h
  73.     $(CC) -c register.cc
  74.  
  75. annotati.o:    annotati.cc annotati.h
  76.     $(CC) -c annotati.cc
  77.  
  78. capture.o:    capture.cc capture.h
  79.     $(CC) -c capture.cc
  80.  
  81. gdbio.o:    gdbio.cc string.h pmapp.h pmframe.h pmtxt.h pmtty.h \
  82.         breakpoi.h display.h threads.h annotati.h capture.h \
  83.         gdbio.h pmdebug.h command.h
  84.     $(CC) -c gdbio.cc
  85.  
  86. pmdebug.o:    pmdebug.cc pmdebug.h
  87.     $(CC) -c pmdebug.cc
  88.  
  89. pmtty.o:    pmtty.cc string.h pmapp.h pmframe.h pmtxt.h pmtty.h
  90.     $(CC) -c pmtty.cc
  91.  
  92. pmtxt.o:    pmtxt.cc string.h pmapp.h pmframe.h pmtxt.h
  93.     $(CC) -c pmtxt.cc
  94.  
  95. pmframe.o:    pmframe.cc string.h pmapp.h pmframe.h
  96.     $(CC) -c pmframe.cc
  97.  
  98. pmapp.o:    pmapp.cc string.h pmapp.h
  99.     $(CC) -c pmapp.cc
  100.  
  101. string.o:    string.cc string.h
  102.     $(CC) -c string.cc
  103.  
  104. pmgdb.res:        pmgdb.rc pmgdb.h help.h
  105.     rc -r pmgdb.rc
  106.  
  107. $(HELP)pmgdb.hlp:    pmgdb.ipp pmgdb.h
  108.     ipfcprep pmgdb.ipp pmgdb.ipf
  109.     ipfc pmgdb.ipf
  110.     del pmgdb.ipf
  111.     cp pmgdb.hlp $(HELP)pmgdb.hlp
  112.  
  113. clean:
  114.     -rm -f *.o *.exe *.res *.hlp pmgdb.ipf core pmgdb
  115.