home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / general / Makefile.in < prev    next >
Makefile  |  1996-12-11  |  1KB  |  73 lines

  1. #### Start of system configuration section. ####
  2.  
  3. srcdir =    @srcdir@
  4.  
  5. ifeq ($(srcdir),.)
  6. srcdir = ../..
  7. endif
  8.  
  9. VPATH :=    $(srcdir)
  10.  
  11.  
  12. # Common prefix for machine-independent installed files.
  13. prefix =    @prefix@
  14.  
  15. # Common prefix for machine-dependent installed files.
  16. exec_prefix =    @exec_prefix@
  17.  
  18. bindir =    $(exec_prefix)/bin
  19. libdir =    $(exec_prefix)/Sys/libs
  20.  
  21. INSTALL =    @INSTALL@
  22. INSTALL_DATA =    @INSTALL_DATA@
  23.  
  24. CC =        @CC@
  25.  
  26. CFLAGS =    @CFLAGS@
  27. LDFLAGS =    @LDFLAGS@
  28.  
  29. RANLIB =    @RANLIB@
  30. AR =        ar
  31.  
  32. #### End system configuration section ####
  33.  
  34. # I *love* GNU make!
  35. define catenate
  36. /bin/echo -n creating $@...
  37. /bin/echo "$(^:%=#include \"%\"\n)" >$@
  38. /bin/echo done
  39. endef
  40.  
  41. FLAVOR_CFLAGS =    -m$(CPU) -m$(FPU)
  42. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) -g $(INCS)
  43.  
  44. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  45. LIB =        libgeneral.a
  46.  
  47. .c.o:
  48.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  49.  
  50. A4_SRC =    glob.c
  51.  
  52. SRC =           $(filter-out $(A4_SRC),$(notdir $(wildcard $(srcdir)/*.c)))
  53.  
  54. $(LIB):        all.o a4.o
  55.         rm -f $@
  56.         $(AR) rv $@ $^
  57.         $(RANLIB) $@
  58.  
  59. all.c:        $(SRC)
  60.         @$(catenate)
  61.  
  62. a4.c:        $(A4_SRC)
  63.         @$(catenate)
  64.  
  65. a4.o:        a4.c
  66.         $(CC) $(ALL_CFLAGS) -ffixed-a4 -c $< -o $@
  67.  
  68. clean:
  69.         rm -rf 680?0
  70.  
  71. clobber:    clean
  72.         rm -f Makefile
  73.