makefiles updated to make use of cross compile tools
console/Makefile: All tools are variables now palcode/Makefile: tool names changed to variables, can build palcode on zizzer
This commit is contained in:
parent
edd7e46eb8
commit
ae7e8a4660
2 changed files with 13 additions and 9 deletions
|
@ -7,6 +7,10 @@ INCLUDES = -I$(PALCODE) -I$(INCLUDEH) -I$(M5)/dev
|
||||||
SOURDIR = ./
|
SOURDIR = ./
|
||||||
PALCODE = ../palcode
|
PALCODE = ../palcode
|
||||||
INCLUDEH = ../h
|
INCLUDEH = ../h
|
||||||
|
AS=alpha-elf-as
|
||||||
|
CC=alpha-elf-gcc
|
||||||
|
CXX=alpha-elf-$(CXX)
|
||||||
|
|
||||||
|
|
||||||
dbmentry.o: dbmentry.s
|
dbmentry.o: dbmentry.s
|
||||||
$(AS) $(INCLUDES) -nointrinsics -o $*.o $*.s
|
$(AS) $(INCLUDES) -nointrinsics -o $*.o $*.s
|
||||||
|
@ -18,12 +22,12 @@ printf.o: printf.c
|
||||||
$(CC) -g3 $(INCLUDES) -nointrinsics -o $*.o -c $*.c
|
$(CC) -g3 $(INCLUDES) -nointrinsics -o $*.o -c $*.c
|
||||||
|
|
||||||
paljtokern.s.o: paljtokern.s
|
paljtokern.s.o: paljtokern.s
|
||||||
g++ -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ paljtokern.s | \
|
$(CXX) -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ paljtokern.s | \
|
||||||
gas -m 21164 -o paljtokern.s.o
|
$(AS) -m 21164 -o paljtokern.s.o
|
||||||
|
|
||||||
paljtoslave.s.o: paljtoslave.s
|
paljtoslave.s.o: paljtoslave.s
|
||||||
g++ -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ paljtoslave.s | \
|
$(CXX) -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ paljtoslave.s | \
|
||||||
gas -m 21164 -o paljtoslave.s.o
|
$(AS) -m 21164 -o paljtoslave.s.o
|
||||||
|
|
||||||
paljtokern.c: paljtokern.s.o
|
paljtokern.c: paljtokern.s.o
|
||||||
echo 'unsigned int palJToKern[] = {' > paljtokern.c
|
echo 'unsigned int palJToKern[] = {' > paljtokern.c
|
||||||
|
|
|
@ -3,15 +3,15 @@
|
||||||
|
|
||||||
#19 December 2003 - Ali Saidi
|
#19 December 2003 - Ali Saidi
|
||||||
|
|
||||||
GAS = as
|
GAS = alpha-elf-as
|
||||||
CC = g++
|
CC = alpha-elf-g++
|
||||||
LD = ld
|
LD = alpha-elf-ld
|
||||||
#CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++
|
#CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++
|
||||||
CFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++
|
CFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++
|
||||||
GASFLAGS=-m21164
|
GASFLAGS=-m21164
|
||||||
LDFLAGS=-Ttext 0x4000
|
LDFLAGS=-Ttext 0x4000
|
||||||
|
|
||||||
SOURCES=platform_tlaser.s osfpal.s
|
SOURCES=osfpal.s platform_tlaser.s
|
||||||
PREPROC := $(SOURCES:.s=.i)
|
PREPROC := $(SOURCES:.s=.i)
|
||||||
OBJS := $(SOURCES:.s=.o)
|
OBJS := $(SOURCES:.s=.o)
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ OBJS := $(SOURCES:.s=.o)
|
||||||
|
|
||||||
|
|
||||||
all: $(PREPROC) $(OBJS)
|
all: $(PREPROC) $(OBJS)
|
||||||
ld $(LDFLAGS) -o osfpal $(OBJS)
|
$(LD) $(LDFLAGS) -o osfpal $(OBJS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.i osfpal
|
rm -f *.o *.i osfpal
|
||||||
|
|
Loading…
Reference in a new issue