source: trunk/libs/newlib/src/libgloss/mt/Makefile.in @ 612

Last change on this file since 612 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 3.5 KB
Line 
1# Copyright (c) 2001, 2005 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/mt. This is the board support for the Morpho mt.
14
15VPATH = @srcdir@ @srcdir@/..
16srcdir = @srcdir@
17objdir = .
18srcroot = $(srcdir)/../..
19objroot = $(objdir)/../..
20
21prefix = @prefix@
22exec_prefix = @exec_prefix@
23
24host_alias = @host_alias@
25target_alias = @target_alias@
26
27bindir = @bindir@
28libdir = @libdir@
29tooldir = $(exec_prefix)/$(target_alias)
30
31# Multilib support variables.
32# TOP is used instead of MULTI{BUILD,SRC}TOP.
33MULTIDIRS =
34MULTISUBDIR =
35MULTIDO = true
36MULTICLEAN = true
37
38INSTALL = @INSTALL@
39INSTALL_PROGRAM = @INSTALL_PROGRAM@
40INSTALL_DATA = @INSTALL_DATA@
41
42SHELL = /bin/sh
43
44CC = @CC@
45
46AS = @AS@
47AR = @AR@
48LD = @LD@
49RANLIB = @RANLIB@
50AR_FLAGS = rc
51
52OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
53        then echo ${objroot}/../binutils/objdump ; \
54        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
55OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
56        then echo ${objroot}/../binutils/objcopy ; \
57        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
58
59SCRIPTS = 16-002.ld  16-003.ld  64-001.ld ms2.ld
60CRT0 = crt0.o crt0-64-001.o crt0-16-002.o crt0-16-003.o crt0-ms2.o \
61        startup-64-001.o startup-16-002.o startup-16-003.o startup-ms2.o \
62        exit.o exit-64-001.o exit-16-002.o exit-16-003.o exit-ms2.o
63
64SIM_BSP = libsim.a
65SIM_OBJS = access.o chmod.o close.o \
66        fstat.o getpid.o gettime.o isatty.o kill.o lseek.o open.o \
67        read.o sbrk.o stat.o time.o times.o trap.o unlink.o utime.o write.o
68
69#### Host specific Makefile fragment comes in here.
70@host_makefile_frag@
71
72all: $(CRT0) $(SIM_BSP)
73
74$(SIM_BSP): $(SIM_OBJS)
75        $(AR) $(ARFLAGS) $@ $?
76        $(RANLIB) $@
77
78access.o: $(srcdir)/access.c
79chmod.o: $(srcdir)/chmod.c
80close.o: $(srcdir)/close.c
81fstat.o: $(srcdir)/fstat.c
82getpid.o: $(srcdir)/getpid.c
83gettime.o: $(srcdir)/gettime.c
84isatty.o: $(srcdir)/isatty.c
85kill.o: $(srcdir)/kill.c
86lseek.o: $(srcdir)/lseek.c
87open.o: $(srcdir)/open.c
88read.o: $(srcdir)/read.c
89sbrk.o: $(srcdir)/sbrk.c
90stat.o: $(srcdir)/stat.c
91time.o: $(srcdir)/time.c
92times.o: $(srcdir)/times.c
93unlink.o: $(srcdir)/unlink.c
94utime.o: $(srcdir)/utime.c
95write.o: $(srcdir)/write.c
96crt0.o: $(srcdir)/crt0.S
97crt0-16-002.o: $(srcdir)/crt0-16-002.S
98crt0-16-003.o: $(srcdir)/crt0-16-003.S
99crt0-64-001.o: $(srcdir)/crt0-64-001.S
100crt0-ms2.o: $(srcdir)/crt0-ms2.S
101
102trap.o: $(srcdir)/trap.S
103
104install: $($(CPU)_INSTALL)
105        for c in $(CRT0); do \
106          $(INSTALL_DATA) $$c $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$$c ; \
107        done;
108        $(INSTALL_DATA) $(SIM_BSP) $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(SIM_BSP)
109        for c in $(SCRIPTS); do \
110          $(INSTALL_DATA) $(srcdir)/$$c $(DESTDIR)$(tooldir)/lib/$$c ; \
111        done;
112
113clean mostlyclean:
114        rm -f *.o *.a
115
116distclean maintainer-clean realclean: clean
117        rm -f Makefile config.cache config.log config.status
118
119.PHONY: info dvi doc install-info clean-info
120info doc dvi:
121install-info:
122clean-info:
123
124Makefile: Makefile.in config.status @host_makefile_frag_path@
125        $(SHELL) config.status
126
127config.status: configure
128        $(SHELL) config.status --recheck
Note: See TracBrowser for help on using the repository browser.