[bffb938] | 1 | # |
---|
| 2 | # Config file for the mvme147 BSP |
---|
| 3 | # |
---|
| 4 | # $Id$ |
---|
| 5 | # |
---|
| 6 | |
---|
| 7 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
| 8 | |
---|
| 9 | RTEMS_CPU=m68k |
---|
| 10 | RTEMS_CPU_MODEL=m68030 |
---|
| 11 | |
---|
| 12 | # This is the actual bsp directory used during the build process. |
---|
| 13 | RTEMS_BSP_FAMILY=mvme147 |
---|
| 14 | |
---|
| 15 | # default flags |
---|
| 16 | CPU_CFLAGS= |
---|
| 17 | |
---|
| 18 | # optimize flag: typically -0, could use -O4 or -fast |
---|
| 19 | # -O4 is ok for RTEMS |
---|
| 20 | CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer |
---|
| 21 | |
---|
| 22 | # This section makes the target dependent options file. |
---|
| 23 | |
---|
| 24 | define make-target-options |
---|
| 25 | endef |
---|
| 26 | |
---|
| 27 | # The following are definitions of make-exe which will work using ld as |
---|
| 28 | # is currently required. It is expected that as of gcc 2.8, the end user |
---|
| 29 | # will be able to override parts of the compilers specs and link using gcc. |
---|
| 30 | |
---|
| 31 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
| 32 | define make-exe |
---|
| 33 | $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \ |
---|
| 34 | $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group |
---|
| 35 | $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i |
---|
| 36 | $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \ |
---|
[011677f] | 37 | $(PACKHEX) > $(basename $@).exe |
---|
[bffb938] | 38 | $(NM) -g -n $(basename $@).nxe > $(basename $@).num |
---|
| 39 | $(SIZE) $(basename $@).nxe |
---|
| 40 | endef |
---|
| 41 | else |
---|
| 42 | define make-exe |
---|
[df49c60] | 43 | $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ |
---|
[98100d2] | 44 | $(LINK_OBJS) $(LINK_LIBS) |
---|
[bffb938] | 45 | $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i |
---|
| 46 | $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \ |
---|
[011677f] | 47 | $(PACKHEX) > $(basename $@).exe |
---|
[bffb938] | 48 | $(NM) -g -n $(basename $@).nxe > $(basename $@).num |
---|
| 49 | $(SIZE) $(basename $@).nxe |
---|
| 50 | endef |
---|
| 51 | endif |
---|
| 52 | # Miscellaneous additions go here |
---|
| 53 | |
---|