source: rtems/make/custom/sim68000.cfg @ b812f84

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

Added sim68000 BSP for the BSVC simulator. This BSP includes the
alias simcpu32 that supports the CPU32 simulator in BSVC. At this
point, it is still under development.

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