4.104.114.84.95
Last change
on this file since 49e05f41 was
49e05f41,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/10/00 at 14:03:32
|
Patch rtems-rc-20000104-4.diff from Ralf Corsepius <corsepiu@…>
that converts the unix directory to automake.
Ralf's note: Please check c/src/lib/libbsp/unix/posix/startup/Makefile.am.
I am not sure if it is correct.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | AUTOMAKE_OPTIONS = foreign 1.4 |
---|
6 | |
---|
7 | PGM = ${ARCH}/startup.rel |
---|
8 | |
---|
9 | VPATH = @srcdir@:@srcdir@/../../../shared |
---|
10 | |
---|
11 | if HAS_CXX |
---|
12 | C_MAIN_C_FILES = |
---|
13 | else |
---|
14 | C_MAIN_C_FILES = main.c bootcard.c |
---|
15 | endif |
---|
16 | |
---|
17 | # C sources |
---|
18 | C_FILES = bspclean.c bsplibc.c bspstart.c setvec.c $(C_MAIN_C_FILES) |
---|
19 | C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) |
---|
20 | startup_rel_OBJECTS = $(C_O_FILES) |
---|
21 | |
---|
22 | # CC sources |
---|
23 | CC_FILES = rtems-ctor.cc |
---|
24 | CC_O_FILES = $(CC_FILES:%.cc=${ARCH}/%.o} |
---|
25 | |
---|
26 | # We install the RTEMS constructor as a separate .o |
---|
27 | # so it can be easily place correctly by the compiler config file. |
---|
28 | |
---|
29 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
30 | include $(top_srcdir)/../../../../../../automake/lib.am |
---|
31 | |
---|
32 | # |
---|
33 | # (OPTIONAL) Add local stuff here using += |
---|
34 | # |
---|
35 | |
---|
36 | AM_CFLAGS += $(LIBC_DEFINES) |
---|
37 | |
---|
38 | $(PGM): $(startup_rel_OBJECTS) |
---|
39 | $(make-rel) |
---|
40 | |
---|
41 | ${ARCH}/libno-ctor.a: $(ARCH)/no-ctor.o |
---|
42 | $(AR) -cvr $@ $< |
---|
43 | |
---|
44 | $(PROJECT_RELEASE)/lib/libno-ctor$(LIB_VARIANT).a: ${ARCH}/libno-ctor.a |
---|
45 | $(INSTALL_DATA) $< $@ |
---|
46 | |
---|
47 | $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o: $(ARCH)/rtems-ctor.o |
---|
48 | $(INSTALL_DATA) $< $@ |
---|
49 | |
---|
50 | if HAS_CXX |
---|
51 | all-local: $(ARCH) $(PGM) \ |
---|
52 | $(PROJECT_RELEASE)/lib/libno-ctor$(LIB_VARIANT).a \ |
---|
53 | $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o |
---|
54 | else |
---|
55 | all-local: $(ARCH) $(PGM) |
---|
56 | endif |
---|
57 | |
---|
58 | EXTRA_DIST = bspclean.c bspstart.c exit.c main.c no-ctor.c rtems-ctor.cc \ |
---|
59 | setvec.c |
---|
60 | |
---|
61 | include $(top_srcdir)/../../../../../../automake/local.am |
---|
Note: See
TracBrowser
for help on using the repository browser.