source: trunk/libs/newlib/src/libgloss/visium/Makefile.in @ 646

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

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

File size: 3.3 KB
Line 
1# Copyright (c) 1998 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
13DESTDIR =
14VPATH = @srcdir@
15srcdir = @srcdir@
16objdir = .
17srcroot = $(srcdir)/../..
18objroot = $(objdir)/../..
19
20prefix = @prefix@
21exec_prefix = @exec_prefix@
22
23host_alias = @host_alias@
24target_alias = @target_alias@
25program_transform_name = @program_transform_name@
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@
47
48AR = @AR@
49
50LD = @LD@
51
52RANLIB = @RANLIB@
53
54OBJDUMP = `t='$(program_transform_name)'; echo objdump | sed -e $$t`
55OBJCOPY = `t='$(program_transform_name)'; echo objcopy | sed -e $$t`
56
57# Generic object files common to some targets.
58# These are LIBGLOSS stubs and minimal functionality in SBRK, READ and WRITE.
59OBJS =  close.o fstat.o getpid.o isatty.o kill.o lseek.o open.o \
60        print.o putnum.o read.o stat.o unlink.o write.o
61
62# Object files specific to particular targets.
63SERIALOBJS = ${OBJS} _exit.o gettod.o sbrk.o serial-inbyte.o serial-outbyte.o
64
65# These go with the hosted file I/O libraries with a version of syscalls.
66HOSTEDOBJS = getpid.o kill.o io-gdb.o io-stubs.o sbrk.o
67
68SCRIPTS =
69BSP = crt0.o libserial.a libsim.a libdebug.a
70
71# Host specific makefile fragment comes in here.
72@host_makefile_frag@
73
74all: ${BSP}
75
76#
77# here's where we build the board support packages for each target
78#
79
80libserial.a: $(SERIALOBJS)
81        $(AR) $(ARFLAGS) $@ $^
82        $(RANLIB) $@
83
84libsim.a: ${HOSTEDOBJS} sim-syscalls.o
85        ${AR} ${ARFLAGS} $@ $^
86        ${RANLIB} $@
87
88libdebug.a: ${HOSTEDOBJS} debug-syscalls.o
89        ${AR} ${ARFLAGS} $@ $^
90        ${RANLIB} $@
91
92sim-syscalls.o: syscalls.c syscall.h io.h
93        ${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -DTARGET_SIM -c -o $@ $<
94
95debug-syscalls.o: syscalls.c syscall.h io.h
96        ${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -c -o $@ $<
97
98$(OBJS): %.o: ../%.c
99        ${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -c -o $@ $<
100
101doc:
102
103clean mostlyclean:
104        rm -f a.out core *.i *~ *.o *-test *.srec *.dis *.map *.x
105
106distclean maintainer-clean realclean: clean
107        rm -f Makefile config.status a.out
108
109.PHONY: install info install-info clean-info
110install:
111        @for bsp in ${BSP}; do\
112         $(INSTALL_DATA) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
113        done
114        @for script in ${SCRIPTS}; do\
115         $(INSTALL_DATA) $(srcdir)/$${script}.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \
116        done
117
118info:
119install-info:
120clean-info:
121
122# target specific makefile fragment comes in here.
123@target_makefile_frag@
124
125Makefile: Makefile.in config.status @host_makefile_frag_path@ @target_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.