source: trunk/libs/newlib/src/libgloss/d30v/Makefile.in @ 476

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

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

File size: 3.1 KB
RevLine 
[444]1# Copyright (c) 1997 Cygnus Support
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
14#
15# This currently works with the D30V simulator.
16#
17
18DESTDIR =
19VPATH = @srcdir@ @srcdir@/..
20srcdir = @srcdir@
21objdir = .
22srcroot = $(srcdir)/../..
23objroot = $(objdir)/../..
24
25prefix = @prefix@
26exec_prefix = @exec_prefix@
27
28host_alias = @host_alias@
29target_alias = @target_alias@
30
31bindir = @bindir@
32libdir = @libdir@
33tooldir = $(exec_prefix)/$(target_alias)
34
35# Multilib support variables.
36# TOP is used instead of MULTI{BUILD,SRC}TOP.
37MULTIDIRS =
38MULTISUBDIR =
39MULTIDO = true
40MULTICLEAN = true
41
42INSTALL = @INSTALL@
43INSTALL_PROGRAM = @INSTALL_PROGRAM@
44INSTALL_DATA = @INSTALL_DATA@
45
46SHELL = /bin/sh
47
48CC = @CC@
49
50AS = @AS@
51AR = @AR@
52LD = @LD@
53RANLIB = @RANLIB@
54
55OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
56        then echo ${objroot}/../binutils/objdump ; \
57        else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
58OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
59        then echo ${objroot}/../binutils/objcopy ; \
60        else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
61
62OBJS            = isatty.o print.o putnum.o sbrk.o
63CFLAGS          = -g
64SCRIPTS         = ${SIM_SCRIPTS}
65
66# Here is all of the simulator stuff
67SIM_SCRIPTS     =
68SIM_LDFLAGS     =
69SIM_BSP         = libsim.a
70SIM_CRT0        = crt0.o
71SIM_OBJS        = syscalls.o outbyte.o inbyte.o
72SIM_TEST        =
73SIM_INSTALL     = install-sim
74
75# Host specific makefile fragment comes in here.
76@host_makefile_frag@
77
78#
79# build a test program for each target board. Just trying to get
80# it to link is a good test, so we ignore all the errors for now.
81#
82all:    ${SIM_CRT0} ${SIM_BSP}
83
84#
85# here's where we build the board support packages for each target
86#
87
88${SIM_BSP}: ${OBJS} ${SIM_OBJS}
89        ${AR} ${ARFLAGS} $@ ${SIM_OBJS} ${OBJS}
90        ${RANLIB} $@
91
92#
93# here's where we build the test programs for each target
94#
95.PHONY: test
96test:   ${SIM_TEST}
97
98crt0.o: crt0.S
99syscalls.o: syscalls.c $(srcdir)/../syscall.h
100outbyte.o: outbyte.c
101inbyte.o: inbyte.c
102
103isatty.o: $(srcdir)/../isatty.c
104print.o: $(srcdir)/../print.c
105putnum.o: $(srcdir)/../putnum.c
106sbrk.o: $(srcdir)/../sbrk.c
107
108clean mostlyclean:
109        rm -f a.out core *.[oais] *-test *.srec *.dis *.x syscall.h
110
111distclean maintainer-clean realclean: clean
112        rm -f Makefile config.status *~
113
114.PHONY: install info install-info clean-info
115install: ${SIM_INSTALL}
116
117install-sim:
118        set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done
119
120doc:
121info:
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.