home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 110 / EnigmaAmiga110CD.iso / indispensabili / utility / apdf / xpdf-0.80 / buildsas / goo / smakefile < prev   
Makefile  |  1999-06-10  |  2KB  |  67 lines

  1. #========================================================================
  2. #
  3. # Goo library Makefile
  4. #
  5. # Copyright 1996 Derek B. Noonburg
  6. #
  7. # Modified by E. Lesueur for Apdf.
  8. #
  9. #========================================================================
  10.  
  11. srcdir = //goo
  12.  
  13. CC = sc:c/sc
  14. CXX = sc:c/sc
  15. AR = sc:c/oml
  16.  
  17. #------------------------------------------------------------------------
  18.  
  19. .cc.o:
  20.     $(CXX) $(CXXFLAGS) $<
  21.  
  22. .c.o:
  23.     $(CC) $(CFLAGS) $<
  24.  
  25. #------------------------------------------------------------------------
  26.  
  27. CXX_SRC = \
  28.     $(srcdir)/gmem.cc \
  29.     $(srcdir)/GString.cc \
  30.     $(srcdir)/gmempp.cc \
  31.     $(srcdir)/gfile.cc
  32.  
  33. C_SRC = \
  34.     $(srcdir)/parseargs.c
  35.  
  36. #------------------------------------------------------------------------
  37.  
  38. GOO_CXX_OBJS = GString.o gmempp.o gfile.o
  39. GOO_C_OBJS = gmem.o parseargs.o
  40. GOO_OBJS = $(GOO_CXX_OBJS) $(GOO_C_OBJS)
  41.  
  42. Goo.lib: $(GOO_OBJS)
  43.     -delete >nil: Goo.lib
  44.     $(AR) Goo.lib r $(GOO_OBJS)
  45.  
  46. #------------------------------------------------------------------------
  47.  
  48. clean:
  49.     delete >nil: $(GOO_OBJS) Goo.lib *.bak
  50.  
  51. #------------------------------------------------------------------------
  52.  
  53. depend:
  54.     copy Makefile Makefile.bak
  55.     sed '/^#----- dependences -----/q' SMakefile.bak >SMakefile
  56.     $(CXX) $(CXXFLAGS) -MM $(CXX_SRC) >>SMakefile
  57.     $(CC) $(CFLAGS) -MM $(C_SRC) >>SMakefile
  58.  
  59. #----- dependences -----
  60. gmem.o: //goo/gmem.cc //goo/gmem.h
  61. GString.o: //goo/GString.cc //goo/GString.h
  62. gmempp.o: //goo/gmempp.cc //goo/gmem.h
  63. gfile.o: //goo/gfile.cc //goo/GString.h //goo/gfile.h \
  64.  //goo/gtypes.h
  65. parseargs.o: //goo/parseargs.c //goo/parseargs.h \
  66.  //goo/gtypes.h
  67.