Files
gem5/system/alpha/palcode/Makefile
Ali Saidi d7fba9784e The palcode will now build by simply typing make in this directory.
Most of the changes were to fix broken macros in platfrom_tlaser.s

palcode/Makefile:
    Completly new makefile to build palcode
palcode/ev5_alpha_defs.h:
    fixed a broken define
palcode/ev5_impure.h:
    macro fixes
palcode/platform_srcmax.s:
    manual macro expansion of broken macros... this file isn't needed to
    build tlaser palcode
palcode/platform_tlaser.s:
    lots of fixups to make the code assemble
2003-12-19 14:24:01 -05:00

30 lines
558 B
Makefile

#Makefile for palcode
#Works on alpha-linux and builds elf executable
#19 December 2003 - Ali Saidi
GAS = as
CC = g++
LD = ld
#CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++
CFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++
GASFLAGS=-m21164
LDFLAGS=-Ttext 0x4000
SOURCES=platform_tlaser.s osfpal.s
PREPROC := $(SOURCES:.s=.i)
OBJS := $(SOURCES:.s=.o)
%.i: %.s
$(CC) $(CFLAGS) $< > $@
%.o: %.i
$(GAS) $(GASFLAGS) -o $@ $<
all: $(PREPROC) $(OBJS)
ld $(LDFLAGS) -o osfpal $(OBJS)
clean:
rm -f *.o *.i osfpal