home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / freedraft.tar.gz / freedraft.tar / FREEdraft-050298 / Makefile < prev    next >
Makefile  |  1998-05-01  |  3KB  |  103 lines

  1. # FREEdraft main makefile
  2.  
  3. # Copyright (C) 1997  Cliff Johnson                                       #
  4. #                                                                         #
  5. # This program is free software; you can redistribute it and/or           #
  6. # modify it under the terms of the GNU  General Public                    #
  7. # License as published by the Free Software Foundation; either            #
  8. # version 2 of the License, or (at your option) any later version.        #
  9. #                                                                         #
  10. # This software is distributed in the hope that it will be useful,        #
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of          #
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       #
  13. # General Public License for more details.                                #
  14. #                                                                         #
  15. # You should have received a copy of the GNU General Public License       #
  16. # along with this software (see COPYING.LIB); if not, write to the        #
  17. # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #
  18.  
  19.  
  20. .SUFFIXES : . .cpp 
  21.  
  22. FREEROOT=.
  23.  
  24. include Makefile.in
  25.  
  26. OBJECTS = \
  27. $(HACKV)/fd_vbglcnv.o \
  28. $(VIEWPORT)/vdglcanvas.o \
  29. $(VIEWPORT)/vdcmdwin.o \
  30. $(VIEWPORT)/vdapp.o \
  31. $(VIEWPORT)/typemaskbehavior.o \
  32. $(VIEWPORT)/pointstack.o \
  33. $(VIEWPORT)/modifierbehavior.o \
  34. $(VIEWPORT)/functionmapbehavior.o \
  35. $(VIEWPORT)/canvasglstate.o \
  36. $(DRAWABLES)/drawablepoint.o \
  37. $(DRAWABLES)/drawableline.o \
  38. $(DRAWABLES)/drawablecircle.o \
  39. $(DRAWABLES)/drawablesegment.o \
  40. $(DRAWABLES)/drawablearc.o \
  41. $(DRAWABLES)/tabledrawables.o \
  42. $(DRAWABLES)/drawableexception.o \
  43. $(DATAENGINE)/handle.o \
  44. $(DRAWABLES)/drawablegeom.o \
  45. $(DATAENGINE)/geombank.o \
  46. $(DATAENGINE)/engineutility.o \
  47. $(DATAENGINE)/bankexception.o \
  48. $(CORE)/selectstack.o \
  49. $(CORE)/selection.o \
  50. $(CORE)/attributes.o \
  51. $(CORE)/coreexception.o \
  52. $(CORE)/canvasregister.o \
  53. $(CORE)/registeredentity.o \
  54. $(CORE)/selectionfilter.o \
  55. $(COMMAND)/menuhandler.o \
  56. $(COMMAND)/comexception.o \
  57. $(COMMAND)/colordialog.o \
  58. $(COMMAND)/linestyledialog.o \
  59. $(COMMAND)/inputstring.o \
  60. $(COMMAND)/GEOMMENU/geommenuhandler.o \
  61. $(COMMAND)/NOMENU/nomenuhandler.o \
  62. $(COMMAND)/GEOMMENU/geommenuarcdialog.o \
  63. $(COMMAND)/SAVERECALLMENU/saverecallmenuhandler.o \
  64. $(COMMAND)/MEASUREMENTMENU/measurementmenuhandler.o 
  65.  
  66. LIBDIRS = -L/usr/X11R6/lib
  67. LIBS    = -lV -lXaw3d -lXmu -lXt -lXext -lX11 -lGL -lGLw -lGLU -lm
  68.  
  69. all : objects geomlib2d
  70.     $(CXX) $(CFLAGS) $(OBJECTS) $(LIBDIRS) $(LIBS) -L$(GEOMLIB2D) -lGeom2D -o FREEdraft
  71.  
  72. objects :
  73.     cd $(COMMAND) ; $(MAKE)
  74.     cd $(CORE) ; $(MAKE)
  75.     cd $(DATAENGINE) ; $(MAKE)
  76.     cd $(DRAWABLES) ; $(MAKE)
  77.     cd $(VIEWPORT) ; $(MAKE)
  78.     cd $(HACKV) ; $(MAKE)
  79.  
  80. geomlib2d :
  81.     cd $(GEOMLIB2D) ; $(MAKE)
  82. clean :
  83.     rm -f FREEdraft core 
  84.     cd $(COMMAND) ; $(MAKE) clean
  85.     cd $(CORE) ; $(MAKE) clean
  86.     cd $(DATAENGINE) ; $(MAKE) clean
  87.     cd $(DRAWABLES) ; $(MAKE) clean
  88.     cd $(GEOMLIB2D) ; $(MAKE) clean
  89.     cd $(VIEWPORT) ; $(MAKE) clean
  90.     cd $(HACKV) ; $(MAKE) clean
  91.  
  92. vimclean : clean
  93.     rm -f *~  
  94.     cd $(COMMAND) ; $(MAKE) vimclean
  95.     cd $(CORE) ; $(MAKE) vimclean
  96.     cd $(DATAENGINE) ; $(MAKE) vimclean
  97.     cd $(DRAWABLES) ; $(MAKE) vimclean
  98.     cd $(GEOMLIB2D) ; $(MAKE) vimclean
  99.     cd $(VIEWPORT) ; $(MAKE) vimclean
  100.     cd $(HACKV) ; $(MAKE) vimclean
  101.  
  102.     
  103.