Makefile

TOOLDIR=/Users/shibuya/work/h8
CPUTYPE=h8300-hms
CPUSUBTYPE=h8300h/int32
GCCVERSION=3.4.3

BINDIR=$(TOOLDIR)/$(CPUTYPE)/bin

CC=$(BINDIR)/gcc
AS=$(BINDIR)/as
AR=$(BINDIR)/ar
LD=$(BINDIR)/ld
NM=$(BINDIR)/nm

LIBS=-L$(TOOLDIR)/$(CPUTYPE)/lib/$(CPUSUBTYPE) -lc\
	-L$(TOOLDIR)/lib/gcc/$(CPUTYPE)/$(GCCVERSION)/$(CPUSUBTYPE) -lgcc
LDFLAGS=-mh8300h --relax
CFLAGS=-mh -mrelax -mint32 -I$(TOOLDIR)/$(CPUTYPE)/include -Wall

all: hello.out

hello.out: hello.o
	$(LD) -o $@ $(LDFLAGS) $^ -Map $@.map $(LIBS) 

.c.o:
	$(CC) -c $(CFLAGS) $<

clean:
	rm -f *.o *.out

This page was generated at 2005/3/7 22:25:21