source: rtems/make/custom/sim68000.cfg @ 6baa664

4.104.114.84.95
Last change on this file since 6baa664 was 6baa664, checked in by Joel Sherrill <joel.sherrill@…>, on 08/01/00 at 20:51:50

Produce Srecords.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#
2#  Config file for a BSVC m68k simulator
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=m68k
10ifeq ($(RTEMS_BSVC_MODEL),simcpu32)
11RTEMS_CPU_MODEL=cpu32
12CPU_CFLAGS = -mcpu32
13else 
14RTEMS_BSVC_MODEL=sim68000
15RTEMS_CPU_MODEL=m68000
16CPU_CFLAGS = -m68000
17endif
18
19# This is the actual bsp directory used during the build process.
20RTEMS_BSP_FAMILY=sim68000
21
22#
23#  This contains the compiler options necessary to select the CPU model
24#  and (hopefully) optimize for it.
25#
26CPU_DEFINES =
27
28# optimize flag: typically -0, could use -O4 or -fast
29# -O4 is ok for RTEMS
30CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
31
32# debugging please
33CFLAGS_DEBUG_V =
34
35#  This section makes the target dependent options file.
36define make-target-options
37        @echo "#undef $(RTEMS_BSVC_MODEL)"               >>$@
38        @echo "#define $(RTEMS_BSVC_MODEL)"              >>$@
39endef
40
41# The following are definitions of make-exe which will work using ld as
42# is currently required.  It is expected that as of gcc 2.8, the end user
43# will be able to override parts of the compilers specs and link using gcc.
44
45ifeq ($(RTEMS_USE_GCC272),yes)
46define make-exe
47        @echo GCC 2.7.2 and older are not supported
48endef
49else
50define make-exe
51        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
52            -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
53        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).exe
54        $(NM) -g -n $@ > $(basename $@).num
55        $(SIZE) $@
56endef
57endif
58# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.