[444] | 1 | |
---|
| 2 | VPATH = @srcdir@ @srcdir@/.. |
---|
| 3 | srcdir = @srcdir@ |
---|
| 4 | objdir = . |
---|
| 5 | srcroot = $(srcdir)/../.. |
---|
| 6 | objroot = $(objdir)/../.. |
---|
| 7 | |
---|
| 8 | mkinstalldirs = $(SHELL) $(srcroot)/mkinstalldirs |
---|
| 9 | |
---|
| 10 | prefix = @prefix@ |
---|
| 11 | exec_prefix = @exec_prefix@ |
---|
| 12 | |
---|
| 13 | host_alias = @host_alias@ |
---|
| 14 | target_alias = @target_alias@ |
---|
| 15 | program_transform_name = @program_transform_name@ |
---|
| 16 | |
---|
| 17 | bindir = @bindir@ |
---|
| 18 | libdir = @libdir@ |
---|
| 19 | tooldir = $(exec_prefix)/$(target_alias) |
---|
| 20 | |
---|
| 21 | INSTALL = @INSTALL@ |
---|
| 22 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
---|
| 23 | INSTALL_DATA = @INSTALL_DATA@ |
---|
| 24 | |
---|
| 25 | # Multilib support variables. |
---|
| 26 | # TOP is used instead of MULTI{BUILD,SRC}TOP. |
---|
| 27 | MULTIDIRS = |
---|
| 28 | MULTISUBDIR = |
---|
| 29 | MULTIDO = true |
---|
| 30 | MULTICLEAN = true |
---|
| 31 | |
---|
| 32 | SHELL = /bin/sh |
---|
| 33 | |
---|
| 34 | CC = @CC@ |
---|
| 35 | |
---|
| 36 | AS = @AS@ |
---|
| 37 | AR = @AR@ |
---|
| 38 | LD = @LD@ |
---|
| 39 | RANLIB = @RANLIB@ |
---|
| 40 | |
---|
| 41 | OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ |
---|
| 42 | then echo ${objroot}/../binutils/objdump ; \ |
---|
| 43 | else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` |
---|
| 44 | OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ |
---|
| 45 | then echo ${objroot}/../binutils/objcopy ; \ |
---|
| 46 | else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` |
---|
| 47 | |
---|
| 48 | OBJS = isatty.o scall.o |
---|
| 49 | SCRIPTS = sim.ld |
---|
| 50 | CRT0S = crt0.o |
---|
| 51 | BSPS = libgloss.a |
---|
| 52 | |
---|
| 53 | # Host specific makefile fragment comes in here. |
---|
| 54 | @host_makefile_frag@ |
---|
| 55 | |
---|
| 56 | all: $(CRT0S) $(BSPS) |
---|
| 57 | |
---|
| 58 | libgloss.a: $(OBJS) |
---|
| 59 | ${AR} ${ARFLAGS} $@ $(OBJS) |
---|
| 60 | ${RANLIB} $@ |
---|
| 61 | |
---|
| 62 | # |
---|
| 63 | # Standard targets |
---|
| 64 | # |
---|
| 65 | |
---|
| 66 | clean mostlyclean: |
---|
| 67 | rm -f a.out core *.i *.o *-test *.srec *.dis *.x |
---|
| 68 | |
---|
| 69 | distclean maintainer-clean realclean: clean |
---|
| 70 | rm -f Makefile config.status *~ |
---|
| 71 | |
---|
| 72 | .PHONY: install info install-info clean-info |
---|
| 73 | install: install-scripts # install-includes |
---|
| 74 | @for crt0 in ${CRT0S}; do\ |
---|
| 75 | $(INSTALL_PROGRAM) $${crt0} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ |
---|
| 76 | done |
---|
| 77 | @for bsp in ${BSPS}; do\ |
---|
| 78 | $(INSTALL_PROGRAM) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ |
---|
| 79 | done |
---|
| 80 | |
---|
| 81 | install-includes: |
---|
| 82 | $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/excess; \ |
---|
| 83 | for i in $(srcdir)/*.h; do \ |
---|
| 84 | $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/excess/`basename $$i`; \ |
---|
| 85 | done; |
---|
| 86 | |
---|
| 87 | install-scripts: |
---|
| 88 | @for script in ${SCRIPTS}; do\ |
---|
| 89 | $(INSTALL_DATA) ${srcdir}/$${script} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ |
---|
| 90 | done |
---|
| 91 | |
---|
| 92 | doc: |
---|
| 93 | info: |
---|
| 94 | install-info: |
---|
| 95 | clean-info: |
---|
| 96 | |
---|
| 97 | Makefile: Makefile.in config.status @host_makefile_frag_path@ |
---|
| 98 | $(SHELL) config.status |
---|
| 99 | |
---|
| 100 | config.status: configure |
---|
| 101 | $(SHELL) config.status --recheck |
---|