source: thomson/code/C/HxCHost/Makefile@ 1b74fa2

main
Last change on this file since 1b74fa2 was 1b74fa2, checked in by Adrien Destugues <pulkomandy@…>, 12 years ago

work in progress write support.

  • With latest beta firmware there is no spinup problem anymore in direct access mode,
  • Read the CFG file and display settings menu
  • Save settings (not perfectly working yet)
  • Some tweaks all around.
  • Move code downwards in memory, because we run out of space !

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

  • Property mode set to 100644
File size: 970 bytes
RevLine 
[645c148]1# Project settings ----------------------------------------------
2OBJECTS=obj/$(TARGET)/main.o obj/$(TARGET)/pff.o obj/$(TARGET)/diskio.o
3CFLAGS=-Os -std=gnu99 -Wall
4
5ifeq ($(TARGET),TO8)
6 CFLAGS += -DPLATFORM=8
7endif
8
9ifeq ($(TARGET),MO5)
10 CFLAGS += -DPLATFORM=5
11endif
12
13# System settings -----------------------------------------------
14CC=m6809-thomson-none-gcc
15AS=m6809-thomson-none-as
16
17# Generic rules -------------------------------------------------
18# HFE disk image (for HxC FE)
19out_sap.hfe: out.sap
20 hxcfloppyemulator_convert out.sap -HFE
21
22# Disk Image
23out.sap: TEST.BIN
24 sapfs -c $@
25 sapfs -a $@ $<
26
27# Linking
28TEST.BIN: $(OBJECTS)
[1b74fa2]29 $(CC) -Os $(OBJECTS) -o TEST.BIN -Wl,--map -Wl,-Ttext,0x6100 -nostdlib -lgcc
[645c148]30
31#Compiling
[1b74fa2]32obj/$(TARGET)/%.o: %.c obj/$(TARGET)
[645c148]33 $(CC) $(CFLAGS) -c $< -o $@
34
[1b74fa2]35obj/$(TARGET)/%.o: pff/%.c obj/$(TARGET)
[645c148]36 $(CC) $(CFLAGS) -c $< -o $@
37
[1b74fa2]38obj/$(TARGET)/%.o: %.s obj/$(TARGET)
[645c148]39 $(AS) $< -o $@
[1b74fa2]40
41# init
42obj/$(TARGET):
43 mkdir -p obj/$(TARGET)
Note: See TracBrowser for help on using the repository browser.