1 | # |
---|
2 | # Config file for a BSVC m68k simulator |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
8 | |
---|
9 | RTEMS_CPU=m68k |
---|
10 | ifeq ($(RTEMS_BSVC_MODEL),simcpu32) |
---|
11 | RTEMS_CPU_MODEL=mcpu32 |
---|
12 | CPU_CFLAGS = -mcpu32 |
---|
13 | else |
---|
14 | RTEMS_BSVC_MODEL=sim68000 |
---|
15 | RTEMS_CPU_MODEL=m68000 |
---|
16 | CPU_CFLAGS = -m68000 |
---|
17 | endif |
---|
18 | |
---|
19 | # This is the actual bsp directory used during the build process. |
---|
20 | RTEMS_BSP_FAMILY=sim68000 |
---|
21 | |
---|
22 | # |
---|
23 | # This contains the compiler options necessary to select the CPU model |
---|
24 | # and (hopefully) optimize for it. |
---|
25 | # |
---|
26 | CPU_DEFINES = |
---|
27 | |
---|
28 | # optimize flag: typically -0, could use -O4 or -fast |
---|
29 | # -O4 is ok for RTEMS |
---|
30 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
31 | |
---|
32 | # debugging please |
---|
33 | CFLAGS_DEBUG_V = |
---|
34 | |
---|
35 | # This section makes the target dependent options file. |
---|
36 | define make-target-options |
---|
37 | @echo "#undef $(RTEMS_BSVC_MODEL)" >>$@ |
---|
38 | @echo "#define $(RTEMS_BSVC_MODEL)" >>$@ |
---|
39 | endef |
---|
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 | |
---|
45 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
46 | define make-exe |
---|
47 | @echo GCC 2.7.2 and older are not supported |
---|
48 | endef |
---|
49 | else |
---|
50 | define 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) $@ |
---|
56 | endef |
---|
57 | endif |
---|
58 | # Miscellaneous additions go here |
---|