home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / stack / 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. ifeq ($(BASE),baserel)
  34. DEFS = -DBASEREL
  35. endif
  36.  
  37. ifeq ($(BASE),baserel32)
  38. DEFS = -DLBASEREL
  39. endif
  40.  
  41. FLAVOR_CFLAGS =    -m$(CPU) -m$(FPU) -f$(BASE)
  42. OTHER_CFLAGS =    -fomit-frame-pointer
  43. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(INCS) $(DEFS)
  44.  
  45. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  46. LIB =        libstack.a
  47.  
  48. .c.o:
  49.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  50.  
  51. SRC =           $(notdir $(wildcard $(srcdir)/*.c))
  52.  
  53. OBJ =        $(SRC:.c=.o)
  54.  
  55. $(LIB):        $(OBJ)
  56.         rm -f $@
  57.         $(AR) rc $@ $(OBJ)
  58.         $(RANLIB) $@
  59.  
  60. clean:
  61.         rm -rf *baserel*
  62.  
  63. clobber:    clean
  64.         rm -f Makefile
  65.