4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change
on this file since 10c59c7 was
10c59c7,
checked in by Joel Sherrill <joel.sherrill@…>, on 04/05/12 at 19:01:54
|
link01 - Produce undefined list from relocatable and link errors
This helps when tracking down how many undefined symbols there
are and where they were defined.
|
-
Property mode set to
100644
|
File size:
536 bytes
|
Line | |
---|
1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | include ../../config.inc |
---|
6 | |
---|
7 | PGM=${ARCH}/link01_r.exe |
---|
8 | |
---|
9 | # optional managers required |
---|
10 | MANAGERS=all |
---|
11 | |
---|
12 | # C source names |
---|
13 | C_FILES = test.c |
---|
14 | C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o) |
---|
15 | |
---|
16 | AM_CPPFLAGS += -I $(INSTALL_BASE)/include |
---|
17 | LINK_LIBS += $(INSTALL_BASE)/libbsd.a -Wl,-r |
---|
18 | |
---|
19 | include $(RTEMS_MAKEFILE_PATH)/Makefile.inc |
---|
20 | include $(RTEMS_CUSTOM) |
---|
21 | include $(PROJECT_ROOT)/make/leaf.cfg |
---|
22 | |
---|
23 | OBJS= $(C_O_FILES) |
---|
24 | CLEAN_ADDITIONS += undefined.txt |
---|
25 | |
---|
26 | all: ${ARCH} $(PGM) |
---|
27 | |
---|
28 | $(PGM): $(OBJS) |
---|
29 | $(make-exe) |
---|
30 | |
---|
31 | # @test `cat undefined.txt | wc -l` -ne 0 && exit 1 |
---|
Note: See
TracBrowser
for help on using the repository browser.