[444] | 1 | # Copyright (c) 2002 Red Hat, Inc |
---|
| 2 | # |
---|
| 3 | # The authors hereby grant permission to use, copy, modify, distribute, |
---|
| 4 | # and license this software and its documentation for any purpose, provided |
---|
| 5 | # that existing copyright notices are retained in all copies and that this |
---|
| 6 | # notice is included verbatim in any distributions. No written agreement, |
---|
| 7 | # license, or royalty fee is required for any of the authorized uses. |
---|
| 8 | # Modifications to this software may be copyrighted by their authors |
---|
| 9 | # and need not follow the licensing terms described here, provided that |
---|
| 10 | # the new terms are clearly indicated on the first page of each file where |
---|
| 11 | # they apply. |
---|
| 12 | |
---|
| 13 | # Makefile for libgloss/frv. This is the board support |
---|
| 14 | # code for the various frv targets. |
---|
| 15 | |
---|
| 16 | DESTDIR = |
---|
| 17 | VPATH = @srcdir@ @srcdir@/.. |
---|
| 18 | srcdir = @srcdir@ |
---|
| 19 | objdir = . |
---|
| 20 | srcroot = $(srcdir)/../.. |
---|
| 21 | objroot = $(objdir)/../.. |
---|
| 22 | |
---|
| 23 | prefix = @prefix@ |
---|
| 24 | exec_prefix = @exec_prefix@ |
---|
| 25 | |
---|
| 26 | host_alias = @host_alias@ |
---|
| 27 | target_alias = @target_alias@ |
---|
| 28 | |
---|
| 29 | bindir = @bindir@ |
---|
| 30 | libdir = @libdir@ |
---|
| 31 | tooldir = $(exec_prefix)/$(target_alias) |
---|
| 32 | |
---|
| 33 | # Multilib support variables. |
---|
| 34 | # TOP is used instead of MULTI{BUILD,SRC}TOP. |
---|
| 35 | MULTIDIRS = |
---|
| 36 | MULTISUBDIR = |
---|
| 37 | MULTIDO = true |
---|
| 38 | MULTICLEAN = true |
---|
| 39 | |
---|
| 40 | INSTALL = @INSTALL@ |
---|
| 41 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
---|
| 42 | INSTALL_DATA = @INSTALL_DATA@ |
---|
| 43 | |
---|
| 44 | SHELL = /bin/sh |
---|
| 45 | |
---|
| 46 | CC = @CC@ |
---|
| 47 | |
---|
| 48 | AS = @AS@ |
---|
| 49 | AR = @AR@ |
---|
| 50 | LD = @LD@ |
---|
| 51 | RANLIB = @RANLIB@ |
---|
| 52 | AR_FLAGS = rc |
---|
| 53 | |
---|
| 54 | OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ |
---|
| 55 | then echo ${objroot}/../binutils/objdump ; \ |
---|
| 56 | else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` |
---|
| 57 | OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ |
---|
| 58 | then echo ${objroot}/../binutils/objcopy ; \ |
---|
| 59 | else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` |
---|
| 60 | |
---|
| 61 | CRT0 = crt0.o |
---|
| 62 | SIM_BSP = libsim.a |
---|
| 63 | SIM_OBJS = _exit.o \ |
---|
| 64 | access.o \ |
---|
| 65 | chmod.o \ |
---|
| 66 | chown.o \ |
---|
| 67 | close.o \ |
---|
| 68 | creat.o \ |
---|
| 69 | crt1.o \ |
---|
| 70 | execv.o \ |
---|
| 71 | execve.o \ |
---|
| 72 | fork.o \ |
---|
| 73 | fstat.o \ |
---|
| 74 | getpid.o \ |
---|
| 75 | gettime.o \ |
---|
| 76 | isatty.o \ |
---|
| 77 | kill.o \ |
---|
| 78 | link.o \ |
---|
| 79 | lseek.o \ |
---|
| 80 | open.o \ |
---|
| 81 | pipe.o \ |
---|
| 82 | read.o \ |
---|
| 83 | sbrk.o \ |
---|
| 84 | stat.o \ |
---|
| 85 | time.o \ |
---|
| 86 | times.o \ |
---|
| 87 | trap.o \ |
---|
| 88 | unlink.o \ |
---|
| 89 | utime.o \ |
---|
| 90 | wait.o \ |
---|
| 91 | write.o |
---|
| 92 | |
---|
| 93 | #### Host specific Makefile fragment comes in here. |
---|
| 94 | @host_makefile_frag@ |
---|
| 95 | |
---|
| 96 | all: $(CRT0) $(SIM_BSP) |
---|
| 97 | |
---|
| 98 | $(SIM_BSP): $(SIM_OBJS) |
---|
| 99 | $(AR) $(ARFLAGS) $@ $? |
---|
| 100 | $(RANLIB) $@ |
---|
| 101 | |
---|
| 102 | _exit.o: $(srcdir)/_exit.c |
---|
| 103 | access.o: $(srcdir)/access.c |
---|
| 104 | chmod.o: $(srcdir)/chmod.c |
---|
| 105 | chown.o: $(srcdir)/chown.c |
---|
| 106 | close.o: $(srcdir)/close.c |
---|
| 107 | creat.o: $(srcdir)/creat.c |
---|
| 108 | crt1.o: $(srcdir)/crt1.c |
---|
| 109 | execv.o: $(srcdir)/execv.c |
---|
| 110 | execve.o: $(srcdir)/execve.c |
---|
| 111 | fork.o: $(srcdir)/fork.c |
---|
| 112 | fstat.o: $(srcdir)/fstat.c |
---|
| 113 | getpid.o: $(srcdir)/getpid.c |
---|
| 114 | gettime.o: $(srcdir)/gettime.c |
---|
| 115 | isatty.o: $(srcdir)/isatty.c |
---|
| 116 | kill.o: $(srcdir)/kill.c |
---|
| 117 | link.o: $(srcdir)/link.c |
---|
| 118 | lseek.o: $(srcdir)/lseek.c |
---|
| 119 | open.o: $(srcdir)/open.c |
---|
| 120 | pipe.o: $(srcdir)/pipe.c |
---|
| 121 | read.o: $(srcdir)/read.c |
---|
| 122 | sbrk.o: $(srcdir)/sbrk.c |
---|
| 123 | stat.o: $(srcdir)/stat.c |
---|
| 124 | time.o: $(srcdir)/time.c |
---|
| 125 | times.o: $(srcdir)/times.c |
---|
| 126 | trap.o: $(srcdir)/trap.S |
---|
| 127 | unlink.o: $(srcdir)/unlink.c |
---|
| 128 | utime.o: $(srcdir)/utime.c |
---|
| 129 | wait.o: $(srcdir)/wait.c |
---|
| 130 | write.o: $(srcdir)/write.c |
---|
| 131 | |
---|
| 132 | install: $($(CPU)_INSTALL) |
---|
| 133 | $(INSTALL_DATA) $(CRT0) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(CRT0) |
---|
| 134 | $(INSTALL_DATA) $(SIM_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(SIM_BSP) |
---|
| 135 | |
---|
| 136 | clean mostlyclean: |
---|
| 137 | rm -f *.o *.a |
---|
| 138 | |
---|
| 139 | distclean maintainer-clean realclean: clean |
---|
| 140 | rm -f Makefile config.cache config.log config.status |
---|
| 141 | |
---|
| 142 | .PHONY: info dvi doc install-info clean-info |
---|
| 143 | info doc dvi: |
---|
| 144 | install-info: |
---|
| 145 | clean-info: |
---|
| 146 | |
---|
| 147 | Makefile: Makefile.in config.status @host_makefile_frag_path@ |
---|
| 148 | $(SHELL) config.status |
---|
| 149 | |
---|
| 150 | config.status: configure |
---|
| 151 | $(SHELL) config.status --recheck |
---|