Changeset 7cabd49 in thomson for code/C/HxCHost/Makefile
- Timestamp:
- Mar 19, 2012, 7:51:49 AM (12 years ago)
- Branches:
- main
- Children:
- fe55aa5
- Parents:
- cc8f3af
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/C/HxCHost/Makefile
rcc8f3af r7cabd49 5 5 ifeq ($(TARGET),TO8) 6 6 CFLAGS += -DPLATFORM=8 7 endif 8 7 else 9 8 ifeq ($(TARGET),MO5) 10 9 CFLAGS += -DPLATFORM=5 10 else 11 # No target defined. Fail. 12 all: 13 echo "make TARGET=MO5 or make TARGET=TO8" 14 false 15 endif 11 16 endif 12 17 13 18 # System settings ----------------------------------------------- 14 CC=m6809-thomson-none-gcc 15 AS=m6809-thomson-none-as 19 PREFIX=m6809-thomson 20 CC=$(PREFIX)-gcc 21 AS=$(PREFIX)-as 16 22 17 23 # Generic rules ------------------------------------------------- … … 19 25 out_sap.hfe: out.sap 20 26 hxcfloppyemulator_convert out.sap -HFE 27 cp out_sap.hfe /mo5/MO5/ 28 unmount /mo5 29 rm -r /mo5 21 30 22 31 # Disk Image … … 26 35 27 36 # Linking 28 TEST.BIN: $(OBJECTS) 29 $(CC) -Os $(OBJECTS) -o TEST.BIN -Wl,--map -Wl,-Ttext,0x6100 -nostdlib -lgcc 37 TEST.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 30 40 31 41 #Compiling 32 42 obj/$(TARGET)/%.o: %.c obj/$(TARGET) 33 $(CC) $(CFLAGS) -c $< -o $@43 $(CC) -save-temps $(CFLAGS) -c $< -o $@ 34 44 35 45 obj/$(TARGET)/%.o: pff/%.c obj/$(TARGET)
Note:
See TracChangeset
for help on using the changeset viewer.