home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / stdlib / Makefile.in < prev    next >
Makefile  |  1996-12-11  |  1KB  |  72 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)
  42.  
  43. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  44. LIB =        libstdlib.a
  45.  
  46. .c.o:
  47.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  48.  
  49. A4_SRC =    bsearch.c heapsort.c qsort.c execve.c
  50.  
  51. SRC =           $(filter-out $(A4_SRC),$(notdir $(wildcard $(srcdir)/*.c)))
  52.  
  53. $(LIB):        all.o a4.o
  54.         rm -f $@
  55.         $(AR) rv $@ $^
  56.         $(RANLIB) $@
  57.  
  58. all.c:        $(SRC)
  59.         @$(catenate)
  60.  
  61. a4.c:        $(A4_SRC)
  62.         @$(catenate)
  63.  
  64. a4.o:        a4.c
  65.         $(CC) $(ALL_CFLAGS) -ffixed-a4 -c $< -o $@
  66.  
  67. clean:
  68.         rm -rf 680?0
  69.  
  70. clobber:    clean
  71.         rm -f Makefile
  72.