source: thomson/code/C/HxCHost/Makefile@ 645c148

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

Add WIP HxC host software for Thomson computers.
Not working yet because of timing problems...

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

  • Property mode set to 100644
File size: 881 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)
29 $(CC) -Os $(OBJECTS) -o TEST.BIN -Wl,--map -Wl,-Ttext,0x7100 -nostdlib -lgcc
30
31#Compiling
32obj/$(TARGET)/%.o: %.c
33 $(CC) $(CFLAGS) -c $< -o $@
34
35obj/$(TARGET)/%.o: pff/%.c
36 $(CC) $(CFLAGS) -c $< -o $@
37
38obj/$(TARGET)/%.o: %.s
39 $(AS) $< -o $@
Note: See TracBrowser for help on using the repository browser.