source: trunk/libs/newlib/src/libgloss/ft32/Makefile.in @ 480

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

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

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