source: trunk/libs/newlib/src/libgloss/rx/Makefile.in @ 679

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

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

File size: 3.6 KB
Line 
1# Copyright (c) 2008, 2009 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/rx.
14
15VPATH = @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 = $(srcdir)/rx.ld $(srcdir)/rx-sim.ld
60CRT = gcrt0.o crt0.o crtn.o
61SIM_BSP = libsim.a
62LIBNOSYS = ../libnosys/libnosys.a
63SIM_OBJS = \
64        sbrk.o \
65        heaptop.o \
66        exit.o \
67        open.o \
68        close.o \
69        read.o \
70        write.o \
71        lseek.o \
72        unlink.o \
73        getpid.o \
74        kill.o \
75        fstat.o \
76        argvlen.o \
77        argv.o \
78        chdir.o \
79        stat.o \
80        chmod.o \
81        utime.o \
82        time.o \
83        gettimeofday.o \
84        times.o \
85        link.o \
86        isatty.o \
87        abort.o \
88        mcount.o \
89        sigprocmask.o \
90        sleep.o
91
92#### Host specific Makefile fragment comes in here.
93@host_makefile_frag@
94
95
96# Override .S.o rule to pass assembler debugging flags
97.S.o:
98        $(CC) -Wa,-gdwarf2 -Wa,-I$(srcdir) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $<
99
100all: $(CRT) $(SIM_BSP) copy_scripts_to_objdir
101
102$(SIM_BSP): $(SIM_OBJS)
103        $(AR) $(ARFLAGS) $@ $?
104        $(RANLIB) $@
105
106copy_scripts_to_objdir: $(SCRIPTS)
107        cp $(SCRIPTS) $(objdir)
108
109# Dependencies
110
111SDEPS = $(srcdir)/rxsys.h $(srcdir)/../syscall.h
112
113abort.o : $(SDEPS)
114argv.o : $(SDEPS)
115argvlen.o : $(SDEPS)
116chdir.o : $(SDEPS)
117chmod.o : $(SDEPS)
118close.o : $(SDEPS)
119exit.o : $(SDEPS)
120fstat.o : $(SDEPS)
121getpid.o : $(SDEPS)
122gettimeofday.o : $(SDEPS)
123gcrt0.o: gcrt0.S crt0.S
124heaptop.o : $(SDEPS)
125kill.o : $(SDEPS)
126link.o : $(SDEPS)
127lseek.o : $(SDEPS)
128mcount.o : $(SDEPS)
129open.o : $(SDEPS)
130read.o : $(SDEPS)
131sigprocmask.o : $(SDEPS)
132sleep.o : $(SDEPS)
133stat.o : $(SDEPS)
134time.o : $(SDEPS)
135times.o : $(SDEPS)
136unlink.o : $(SDEPS)
137utime.o : $(SDEPS)
138write.o : $(SDEPS)
139
140install: $(CRT) $(SIM_BSP) $(SCRIPTS)
141        for c in $(CRT) $(SIM_BSP); do \
142          $(INSTALL_DATA) $$c $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$$c ;\
143        done
144        for c in $(SCRIPTS); do \
145          b=`basename $$c`; \
146          $(INSTALL_DATA) $$c $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$$b ;\
147        done
148
149clean mostlyclean:
150        rm -f *.o *.a
151
152distclean maintainer-clean realclean: clean
153        rm -f Makefile config.cache config.log config.status
154
155.PHONY: info dvi doc install-info clean-info
156info doc dvi:
157install-info:
158clean-info:
159
160Makefile: Makefile.in config.status @host_makefile_frag_path@
161        $(SHELL) config.status
162
163config.status: configure
164        $(SHELL) config.status --recheck
Note: See TracBrowser for help on using the repository browser.