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