home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / gplibt02 / makefile.32 < prev    next >
Makefile  |  1993-07-24  |  2KB  |  86 lines

  1. # Makefile for g++ library test files (32 bit int default)
  2.  
  3. GXX= cgcc
  4. CC= cgcc
  5. AR= car
  6. AS= $(CC)
  7.  
  8. # common subset of options; no int size or omit-frame-pointer:
  9. COMMONOPT = -O
  10. COMMONFLAGS =
  11. COMMONDEFINES = -DNO_LIBGXX_MALLOC
  12.  
  13. COPTS= $(COMMONOPT) $(COMMONFLAGS) $(COMMONDEFINES)  \
  14.        -DNDEBUG $(XFLAGS)
  15.  
  16. GXXOPTS= $(COMMONOPT) $(COMMONFLAGS) $(COMMONDEFINES)  \
  17.        -felide-constructors -fsave-memoized $(XXFLAGS)
  18.  
  19. # Base options CC; includes int size but not omit-frame-pointer
  20. CFFLAGS = $(COPTS)
  21. GXXFFLAGS = $(GXXOPTS)
  22.  
  23. # normal CFLAGS including int size and omit-frame-pointer
  24. CFLAGS= $(CFFLAGS)
  25. GXXFLAGS = $(GXXFFLAGS)
  26.  
  27. # cflags for stuff that needs to be compiled with 32 bit ints
  28. CLFLAGS= $(CFLAGS)
  29. GXXLFLAGS = $(GXXFLAGS)
  30.  
  31. # flags to $(CC) when it runs the assembler only
  32. ASFLAGS= -c
  33.  
  34. # pre-processor flags
  35. PPFLAGS= -P -DNDEBUG
  36.  
  37. # ld flags
  38. LDFLAGS = -v -lpml -s -lg++
  39.  
  40. # test targets
  41. TEST= tbitset.ttp tbitstri.ttp tcomplex.ttp tfile.ttp tfix.ttp tfix16.ttp \
  42. tfix24.ttp tgetopt.ttp tinteger.ttp tobstack.ttp trandom.ttp trationa.ttp \
  43. tstring.ttp
  44.  
  45. # the stuff to make
  46. ALL= $(TEST)
  47.  
  48. # g++ files should have extension .cc
  49. # generated test files will habe .ttp extn
  50.  
  51. .SUFFIXES: .ttp .cc
  52. .cc.o:
  53.     $(GXX) $(GXXFLAGS) -c  $<
  54.  
  55. .o.ttp:
  56.     $(GXX) -o $@ $< $(LDFLAGS)
  57.  
  58. all: $(ALL)
  59.  
  60.  
  61. clean:
  62.     rm -f *.o core
  63.  
  64. realclean: clean
  65.     rm -f $(ALL) core report
  66.  
  67. tbitset.ttp: tbitset.o
  68. tbitstri.ttp: tbitstri.o
  69. tfile.ttp: tfile.o
  70. tfix.ttp: tfix.o
  71. tfix16.ttp: tfix16.o
  72. tfix24.ttp: tfix24.o
  73. tgetopt.ttp: tgetopt.o
  74. tinteger.ttp: tinteger.o
  75. tobstack.ttp: tobstack.o
  76. trandom.ttp: trandom.o
  77. trationa.ttp: trationa.o
  78. tstring.ttp: tstring.o
  79.  
  80. # ah, the pleasures of single pass linking!
  81. tcomplex.ttp: tcomplex.o
  82.     $(GXX) -o $@ $< -lg++ -lpml $(LDFLAGS)
  83.  
  84. trandom.ttp: trandom.o
  85.     $(GXX) -o $@ $< -lg++ -lpml $(LDFLAGS)
  86.