home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / stdio / Makefile.in < prev    next >
Makefile  |  1996-12-11  |  1KB  |  65 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. # Common prefix for machine-independent installed files.
  12. prefix =    @prefix@
  13.  
  14. # Common prefix for machine-dependent installed files.
  15. exec_prefix =    @exec_prefix@
  16.  
  17. bindir =    $(exec_prefix)/bin
  18. libdir =    $(exec_prefix)/Sys/libs
  19.  
  20. INSTALL =    @INSTALL@
  21. INSTALL_DATA =    @INSTALL_DATA@
  22.  
  23. CC =        @CC@
  24.  
  25. CFLAGS =    @CFLAGS@
  26. LDFLAGS =    @LDFLAGS@
  27.  
  28. RANLIB =    @RANLIB@
  29. AR =        ar
  30.  
  31. #### End system configuration section ####
  32.  
  33. # I *love* GNU make!
  34. define catenate
  35. /bin/echo -n creating $@...
  36. /bin/echo "$(^:%=#include \"%\"\n)" >$@
  37. /bin/echo done
  38. endef
  39.  
  40. FLAVOR_CFLAGS =    -m$(CPU) -m$(FPU)
  41. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) -g $(INCS) $(DEFS)
  42.  
  43. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  44. DEFS =          -DFLOATING_POINT
  45. LIB =        libstdio.a
  46.  
  47. .c.o:
  48.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  49.  
  50. SRC =           $(notdir $(wildcard $(srcdir)/*.c))
  51.  
  52. $(LIB) :    all.o
  53.         rm -f $@
  54.         $(AR) rv $@ $^
  55.         $(RANLIB) $@
  56.  
  57. all.c:        $(SRC)
  58.         @$(catenate)
  59.  
  60. clean:
  61.         rm -rf 680?0
  62.  
  63. clobber:    clean
  64.         rm -f Makefile
  65.