source: rtems/make/custom/eth_comm.cfg @ 54d3d1e

4.104.114.84.95
Last change on this file since 54d3d1e was 54d3d1e, checked in by Joel Sherrill <joel.sherrill@…>, on 03/08/99 at 21:41:09

Added $(CPPFLAGS) to all gcc 2.8 style make-exe rules.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1#
2#  Config file for MPC860 based Ethernet Comm Board
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=powerpc
10RTEMS_CPU_MODEL=mpc860
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=eth_comm
14
15CPU_DEFINES=-DPPC_ABI=PPC_ABI_EABI \
16   -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x00000000
17
18#  This section makes the target dependent options file.
19
20#  NDEBUG (C library)
21#     if defined asserts do not generate code.  This is commonly used
22#     as a command line option.
23#
24#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
25#     do not pause between screens of output in the rtems tests
26#
27#  STACK_CHECKER_ON (RTEMS support code)
28#     If defined, stack bounds checking is enabled.
29#
30#  STACK_CHECKER_REPORT_USAGE (RTEMS support code)
31#     If this and STACK_CHECKER_ON are defined, then a report on stack usage
32#     per task is printed when the program exits.
33#
34#  RTEMS_DEBUG (RTEMS)
35#     If defined, debug checks in RTEMS and support library code are enabled.
36
37define make-target-options
38        @echo "/* #define NDEBUG 1 */ "                     >>$@
39        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
40        @echo "/* #define STACK_CHECKER_ON  1 */"           >>$@
41        @echo "/* #define STACK_CHECKER_REPORT_USAGE  1 */" >>$@
42        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
43endef
44
45#  This contains the compiler options necessary to select the CPU model
46#  and (hopefully) optimize for it.
47#
48CPU_CFLAGS = -mcpu=860
49
50# optimize flag: typically -0, could use -O4 or -fast
51# -O4 is ok for RTEMS
52# NOTE: some level of -O may be actually required by inline assembler
53CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
54
55# No start file
56START_BASE=
57
58# The following are definitions of make-exe which will work using ld as
59# is currently required.  It is expected that as of gcc 2.8, the end user
60# will be able to override parts of the compilers specs and link using gcc.
61
62ifeq ($(RTEMS_USE_GCC272),yes)
63# The --defsym arguments define arguments which are required by the linkcmds
64# file which is designed for gcc 2.8
65define make-exe
66        $(LD) $(XLDFLAGS) -T $(LINKCMDS) \
67            --defsym __fini=0 --defsym __init=0 \
68            -o $@ -u atexit -u __vectors -u download_entry \
69            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
70        $(NM) -g -n $@ > $(basename $@).num
71        $(SIZE) $@
72endef
73else
74define make-exe
75        $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
76            $(LINK_OBJS) $(LINK_LIBS)
77        $(NM) -g -n $@ > $(basename $@).num
78        $(SIZE) $@
79endef
80endif
81
82# Miscellaneous additions go here
83
84
Note: See TracBrowser for help on using the repository browser.