blob: b645d52026c6b8c16cd3cd9cc9f4c85b8314917a [file] [log] [blame]
CROSS = alphaev67-linux-
CC = $(CROSS)gcc
LD = $(CROSS)ld
CFLAGS = -Os -g -Wall -fvisibility=hidden -fno-strict-aliasing \
-msmall-text -msmall-data -mno-fp-regs -mbuild-constants
CFLAGS += -mcpu=pca56
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 $@ $<