home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / glue / Makefile.in < prev   
Makefile  |  1996-12-11  |  2KB  |  87 lines

  1. # Glue comes in two flavors, one for flat address spaces and one for base
  2. # relative.  When gen_glue is compiled, which form of glue is generated
  3. # when it is run depends upon whether "__no_baserel" or "__baserel" was defined
  4. # when it was compiled.
  5.  
  6. #### Start of system configuration section. ####
  7.  
  8. srcdir =    @srcdir@
  9.  
  10. ifeq ($(srcdir),.)
  11. srcdir = ..
  12. endif
  13.  
  14. VPATH :=    $(srcdir)
  15.  
  16. # Common prefix for machine-independent installed files.
  17. prefix =    @prefix@
  18.  
  19. # Common prefix for machine-dependent installed files.
  20. exec_prefix =    @exec_prefix@
  21.  
  22. bindir =    $(exec_prefix)/bin
  23. libdir =    $(exec_prefix)/Sys/libs
  24.  
  25. INSTALL =    @INSTALL@
  26. INSTALL_DATA =    @INSTALL_DATA@
  27.  
  28. CC =        @CC@
  29. AS =        as
  30.  
  31. CFLAGS =    @CFLAGS@
  32. LDFLAGS =    @LDFLAGS@
  33.  
  34. RANLIB =    @RANLIB@
  35. AR =        ar
  36. RM =        rm -f
  37.  
  38. #### End system configuration section ####
  39.  
  40. # BASE is defined to be either "no-baserel" or "baserel" by an upper level
  41. # makefile.  The default is "no-baserel".
  42.  
  43. BASE =        no-baserel
  44.  
  45. FLAVOR_CFLAGS =
  46. OTHER_CFLAGS =    -fomit-frame-pointer
  47. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(INCS)
  48.  
  49. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  50. LIB =        libglue.a
  51. LIB_P =        libglue_p.a
  52. SHELL =        /bin/sh
  53.  
  54. .c.o:
  55.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  56.  
  57. ifeq ($(BASE),baserel)
  58. all:        $(LIB)
  59. else
  60. ifeq ($(BASE),baserel32)
  61. all:        $(LIB)
  62. else
  63. all:        $(LIB) $(LIB_P)
  64. endif
  65. endif
  66.  
  67. $(LIB):        gen_glue
  68.         rm -f *.o
  69.         ./gen_glue $(BASE)
  70.         $(AR) r $@ *.o
  71.         rm -f *.o
  72.  
  73. $(LIB_P):    gen_glue
  74.         rm -f *.o
  75.         ./gen_glue profiling
  76.         $(AR) r $@ *.o
  77.         rm -f *.o
  78.  
  79. gen_glue:    gen_glue.c $(srcdir)/../include/sys/syscall.def
  80.         $(CC) $(ALL_CFLAGS) $< -o $@
  81.  
  82. clean:
  83.         rm -rf *baserel*
  84.  
  85. clobber:    clean
  86.         rm -f Makefile
  87.