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
|
Line | |
---|
1 | # Project settings ----------------------------------------------
|
---|
2 | OBJECTS=obj/$(TARGET)/main.o obj/$(TARGET)/pff.o obj/$(TARGET)/diskio.o
|
---|
3 | CFLAGS=-Os -std=gnu99 -Wall
|
---|
4 |
|
---|
5 | ifeq ($(TARGET),TO8)
|
---|
6 | CFLAGS += -DPLATFORM=8
|
---|
7 | endif
|
---|
8 |
|
---|
9 | ifeq ($(TARGET),MO5)
|
---|
10 | CFLAGS += -DPLATFORM=5
|
---|
11 | endif
|
---|
12 |
|
---|
13 | # System settings -----------------------------------------------
|
---|
14 | CC=m6809-thomson-none-gcc
|
---|
15 | AS=m6809-thomson-none-as
|
---|
16 |
|
---|
17 | # Generic rules -------------------------------------------------
|
---|
18 | # HFE disk image (for HxC FE)
|
---|
19 | out_sap.hfe: out.sap
|
---|
20 | hxcfloppyemulator_convert out.sap -HFE
|
---|
21 |
|
---|
22 | # Disk Image
|
---|
23 | out.sap: TEST.BIN
|
---|
24 | sapfs -c $@
|
---|
25 | sapfs -a $@ $<
|
---|
26 |
|
---|
27 | # Linking
|
---|
28 | TEST.BIN: $(OBJECTS)
|
---|
29 | $(CC) -Os $(OBJECTS) -o TEST.BIN -Wl,--map -Wl,-Ttext,0x7100 -nostdlib -lgcc
|
---|
30 |
|
---|
31 | #Compiling
|
---|
32 | obj/$(TARGET)/%.o: %.c
|
---|
33 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
34 |
|
---|
35 | obj/$(TARGET)/%.o: pff/%.c
|
---|
36 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
37 |
|
---|
38 | obj/$(TARGET)/%.o: %.s
|
---|
39 | $(AS) $< -o $@
|
---|
Note:
See
TracBrowser
for help on using the repository browser.