source: rtems/c/src/lib/libc/Makefile.in @ 1587af6

4.104.114.84.95
Last change on this file since 1587af6 was 674c900, checked in by Joel Sherrill <joel.sherrill@…>, on 12/10/97 at 16:58:00

Modified a lot of files to take a first cut at supporting building from
any directory in the build tree. The only variable which must be set
before the command "gmake" is invoked is RTEMS_BSP (e.g. RTEMS_BSP=erc32).

  • Property mode set to 100644
File size: 1.6 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8VPATH = @srcdir@
9RTEMS_ROOT = @RTEMS_ROOT@
10PROJECT_ROOT = @PROJECT_ROOT@
11RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
12
13LIBNAME=libcsupport.a
14LIB=${ARCH}/${LIBNAME}
15
16# C and C++ source names, if any, go here -- minus the .c or .cc
17C_PIECES=__gettod __brk __times malloc syscalls \
18    no_libc newlibc newlibif newlibifr support unixlibc \
19    libio hosterr tcattr termios
20C_FILES=$(C_PIECES:%=%.c)
21C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
22
23H_FILES=$(srcdir)/libcsupport.h
24SYS_H_FILES=
25RTEMS_H_FILES=$(srcdir)/libio.h
26PRIVATE_H_FILES=$(srcdir)/internal.h
27
28INSTALLED_H_FILES=$(srcdir)/libio.h $(srcdir)/libcsupport.h
29SRCS=$(C_FILES) $(H_FILES) $(SYS_H_FILES) $(RTEMS_H_FILES) $(PRIVATE_H_FILES)
30OBJS=$(C_O_FILES)
31
32include $(RTEMS_CUSTOM)
33include $(PROJECT_ROOT)/make/lib.cfg
34
35#
36# Add local stuff here using +=
37#
38
39DEFINES  +=
40CPPFLAGS +=
41CFLAGS   += $(LIBC_DEFINES)
42
43#
44# Add your list of files to delete here.  The config files
45#  already know how to delete some stuff, so you may want
46#  to just run 'make clean' first to see what gets missed.
47#  'make clobber' already includes 'make clean'
48#
49
50CLEAN_ADDITIONS += $(LIB)
51CLOBBER_ADDITIONS +=
52
53all:    ${ARCH} preinstall $(LIB)
54        $(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib
55
56$(LIB): $(SRCS) ${OBJS}
57        $(make-library)
58
59# Install the library, appending _g or _p as appropriate.
60# for include files, just use $(INSTALL)
61preinstall:
62        $(INSTALL) -m 444 ${RTEMS_H_FILES} $(PROJECT_INCLUDE)/rtems
63        $(INSTALL) -m 444 $(H_FILES) $(PROJECT_INCLUDE)
64        $(INSTALL) -m 444 $(SYS_H_FILES) $(PROJECT_INCLUDE)/sys
65
66
Note: See TracBrowser for help on using the repository browser.