source: trunk/libs/newlib/src/libgloss/rl78/Makefile.in @ 444

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