source: rtems-libbsd/testsuite/link01/Makefile_ldr @ 10c59c7

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
5include ../../config.inc
6
7PGM=${ARCH}/link01_r.exe
8
9# optional managers required
10MANAGERS=all
11
12# C source names
13C_FILES = test.c
14C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
15
16AM_CPPFLAGS += -I $(INSTALL_BASE)/include
17LINK_LIBS += $(INSTALL_BASE)/libbsd.a -Wl,-r
18
19include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
20include $(RTEMS_CUSTOM)
21include $(PROJECT_ROOT)/make/leaf.cfg
22
23OBJS= $(C_O_FILES)
24CLEAN_ADDITIONS += undefined.txt
25
26all:    ${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.