source: trunk/libs/newlib/src/libgloss/arc/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: 2.8 KB
RevLine 
[444]1#
2#
3DESTDIR =
4VPATH = @srcdir@ @srcdir@/..
5srcdir = @srcdir@
6objdir = .
7srcroot = $(srcdir)/../..
8objroot = $(objdir)/../..
9mkinstalldirs = $(SHELL) $(srcroot)/mkinstalldirs
10
11prefix = @prefix@
12exec_prefix = @exec_prefix@
13
14host_alias = @host_alias@
15target_alias = @target_alias@
16
17bindir = @bindir@
18libdir = @libdir@
19tooldir = $(exec_prefix)/$(target_alias)
20
21objtype = @objtype@
22
23INSTALL = @INSTALL@
24INSTALL_PROGRAM = @INSTALL_PROGRAM@
25INSTALL_DATA = @INSTALL_DATA@
26
27# Multilib support variables.
28# TOP is used instead of MULTI{BUILD,SRC}TOP.
29MULTIDIRS =
30MULTISUBDIR =
31MULTIDO = true
32MULTICLEAN = true
33
34SHELL = /bin/sh
35
36CC = @CC@
37
38AS = @AS@
39AR = @AR@
40LD = @LD@
41RANLIB = @RANLIB@
42
43OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
44        then echo ${objroot}/../binutils/objdump ; \
45        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
46OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
47        then echo ${objroot}/../binutils/objcopy ; \
48        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
49
50CRT0            = gcrt0.o crt0.o
51CRT0_INSTALL    = install-crt0
52
53NSIM_BSP = libnsim.a
54NSIM_OBJS = \
55        libcfunc.o \
56        nsim-syscalls.o \
57        sbrk.o \
58        mcount.o
59NSIM_INSTALL = install-nsim
60NSIM_SCRIPTS = nsim.specs
61
62NANO_SCRIPTS = nano.specs
63NANO_INSTALL = install-nano
64
65CFLAGS          = -g
66
67# Host specific makefile fragment comes in here.
68@host_makefile_frag@
69
70all: $(CRT0) $(NSIM_BSP)
71
72$(NSIM_BSP): $(NSIM_OBJS)
73        $(AR) $(ARFLAGS) $@ $?
74        $(RANLIB) $@
75
76libcfunc.o: libcfunc.c
77nsim-syscalls.o: nsim-syscalls.c
78sbrk.o: sbrk.c
79mcount.o: mcount.c
80gcrt0.o: gcrt0.S crt0.S
81crt0.o: crt0.S
82
83clean mostlyclean:
84        rm -f *.o *.a
85
86distclean maintainer-clean realclean: clean
87        rm -f Makefile config.status config.log config.cache *~
88
89.PHONY: install info install-info clean-info doc dvi
90install: $(CRT0_INSTALL) $(NSIM_INSTALL) $(NANO_INSTALL)
91
92# multilibdir may not exist yet - libgcc for ARC depends on libc, hence
93# newlib/libgloss is built before libgcc. And in parallel build libgloss maybe
94# built and installed before newlib, therefore libgloss has to create target
95# directory.
96
97$(CRT0_INSTALL):
98        $(mkinstalldirs) $(DESTDIR)${tooldir}/lib${MULTISUBDIR}
99        for c in $(CRT0); do \
100          b=`basename $$c`; \
101          ${INSTALL_DATA} $$c $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$b ;\
102        done
103
104$(NSIM_INSTALL):
105        $(mkinstalldirs) $(DESTDIR)${tooldir}/lib${MULTISUBDIR}
106        $(INSTALL_DATA) $(NSIM_BSP) $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$(NSIM_BSP)
107        for x in $(NSIM_SCRIPTS); do \
108            $(INSTALL_DATA) $(srcdir)/$$x $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$$x; done
109
110$(NANO_INSTALL):
111        $(mkinstalldirs) $(DESTDIR)${tooldir}/lib${MULTISUBDIR}
112        for x in $(NANO_SCRIPTS); do \
113                $(INSTALL_DATA) $(srcdir)/$$x $(DESTDIR)$(tooldir)/lib$(MULTISUBDIR)/$$x; done
114
115doc:
116info:
117dvi:
118install-info:
119clean-info:
120
121Makefile: Makefile.in config.status @host_makefile_frag_path@
122        $(SHELL) config.status
123
124config.status: configure
125        $(SHELL) config.status --recheck
Note: See TracBrowser for help on using the repository browser.