Changeset 7cabd49 in thomson for code/C/HxCHost/Makefile


Ignore:
Timestamp:
Mar 19, 2012, 7:51:49 AM (12 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
fe55aa5
Parents:
cc8f3af
Message:

HxC host software : work at Forever XIII party

  • Switch to lwtools gcc toolchain
  • Fix some bugs.
  • Editing the HxC settings works
  • Selecting a floppy image works (sometimes)

git-svn-id: svn://localhost/thomson@24 85ae3b6b-dc8f-4344-a89d-598714f2e4e5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/C/HxCHost/Makefile

    rcc8f3af r7cabd49  
    55ifeq ($(TARGET),TO8)
    66  CFLAGS += -DPLATFORM=8
    7 endif
    8 
     7else
    98ifeq ($(TARGET),MO5)
    109  CFLAGS += -DPLATFORM=5
     10else
     11# No target defined. Fail.
     12all:
     13        echo "make TARGET=MO5 or make TARGET=TO8"
     14        false
     15endif
    1116endif
    1217
    1318# System settings -----------------------------------------------
    14 CC=m6809-thomson-none-gcc
    15 AS=m6809-thomson-none-as
     19PREFIX=m6809-thomson
     20CC=$(PREFIX)-gcc
     21AS=$(PREFIX)-as
    1622
    1723# Generic rules -------------------------------------------------
     
    1925out_sap.hfe: out.sap
    2026        hxcfloppyemulator_convert out.sap -HFE
     27        cp out_sap.hfe /mo5/MO5/
     28        unmount /mo5
     29        rm -r /mo5
    2130
    2231# Disk Image
     
    2635
    2736# Linking
    28 TEST.BIN: $(OBJECTS)
    29         $(CC) -Os $(OBJECTS) -o TEST.BIN -Wl,--map -Wl,-Ttext,0x6100 -nostdlib -lgcc
     37TEST.BIN TEST.map: $(OBJECTS) TEST.script
     38        #$(CC) -v -Os $(OBJECTS) -o TEST.BIN -Wl,--map -Wl,-m -Wl,-Ttext,0x6100 -nostdlib -lgcc
     39        lwlink --decb $(OBJECTS) --output=TEST.BIN --map=TEST.map --script=TEST.script --library-path=/boot/home/config/lib/gcc/m6809-thomson/4.6.1 --library-path=/boot/home/config/m6809-thomson/lib -lgcc
    3040
    3141#Compiling
    3242obj/$(TARGET)/%.o: %.c obj/$(TARGET)
    33         $(CC) $(CFLAGS) -c $< -o $@
     43        $(CC) -save-temps $(CFLAGS) -c $< -o $@
    3444
    3545obj/$(TARGET)/%.o: pff/%.c obj/$(TARGET)
Note: See TracChangeset for help on using the changeset viewer.