diff options
author | fishsoupisgood <github@madingley.org> | 2019-04-29 01:17:54 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2019-05-27 03:43:43 +0100 |
commit | 3f2546b2ef55b661fd8dd69682b38992225e86f6 (patch) | |
tree | 65ca85f13617aee1dce474596800950f266a456c /roms/qemu-palcode/Makefile | |
download | qemu-master.tar.gz qemu-master.tar.bz2 qemu-master.zip |
Diffstat (limited to 'roms/qemu-palcode/Makefile')
-rw-r--r-- | roms/qemu-palcode/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/roms/qemu-palcode/Makefile b/roms/qemu-palcode/Makefile new file mode 100644 index 00000000..20255993 --- /dev/null +++ b/roms/qemu-palcode/Makefile @@ -0,0 +1,35 @@ +CROSS = alphaev67-linux- +CC = $(CROSS)gcc +LD = $(CROSS)ld + +CORE = typhoon +SYSTEM = clipper + +ASFLAGS = -Wa,-m21264 -Wa,--noexecstack +OPT= -O2 +CFLAGS = $(OPT) -g1 -Wall -fvisibility=hidden -fno-strict-aliasing \ + -msmall-text -msmall-data -mno-fp-regs -mbuild-constants +CPPFLAGS = -DSYSTEM_H='"sys-$(SYSTEM).h"' + +CFLAGS += -mcpu=ev67 + +OBJS = pal.o sys-$(SYSTEM).o init.o crb.o uart.o console.o console-low.o \ + ps2port.o pci.o vgaio.o vgatables.o vgafonts.o \ + printf.o util.o memset.o memcpy.o strlen.o + +all: palcode-$(SYSTEM) + +palcode-$(SYSTEM): palcode.ld $(OBJS) + $(LD) -relax -o $@ -T palcode.ld -Map $@.map $(OBJS) + +clean: + rm -f *.o + rm -f palcode-* + +pal.o: pal.S osf.h sys-$(SYSTEM).h core-$(CORE).h +init.o: init.c hwrpb.h osf.h uart.h sys-$(SYSTEM).h core-$(CORE).h +printf.o: printf.c uart.h +uart.o: uart.c uart.h protos.h +crb.o: crb.c hwrpb.h protos.h console.h uart.h +console.o: console.c console.h protos.h +pci.o: pci.c protos.h pci.h pci_regs.h |