source: rtems-libbsd/testsuite/link01/Makefile @ a792664

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since a792664 was a792664, checked in by Joel Sherrill <joel.sherrill@…>, on 04/05/12 at 13:24:45

link01 - Add list of undefined symbols

  • Property mode set to 100644
File size: 594 bytes
Line 
1#
2#  $Id$
3#
4
5include ../../config.inc
6
7PGM=${ARCH}/link01.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)
24
25all:    ${ARCH} $(PGM)
26
27$(PGM): $(OBJS)
28        $(make-exe)
29        $(NM) $(PGM) | grep "U " >undefined.txt
30        @echo `cat undefined.txt | wc -l` symbols to resolve
31        @test `cat undefined.txt | wc -l` -ne 0 && exit 1
Note: See TracBrowser for help on using the repository browser.