blob: 37568f8765f72649c06e62519a22ad90a9e7941e [file] [log] [blame]
CROSS = alphaev67-linux-
CC = $(CROSS)gcc
LD = $(CROSS)ld
CFLAGS = -O -g -Wall -fvisibility=hidden -fno-strict-aliasing \
-msmall-text -msmall-data -mno-fp-regs -mbuild-constants
OBJS = pal.o init.o uart.o memset.o printf.o
all: palcode
palcode: palcode.ld $(OBJS)
$(LD) -relax -o $@ -T palcode.ld -Map palcode.map $(OBJS)
clean:
rm -f *.o
rm -f palcode palcode.map
pal.o: pal.S osf.h
$(CC) $(CFLAGS) -c -Wa,-m21264 -Wa,--noexecstack -o $@ $<