-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
35 lines (27 loc) · 966 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 [email protected] $(OBJS)
clean:
rm -f *.o
rm -f palcode-*
pal.o: pal.S osf.h sys-$(SYSTEM).h core-$(CORE).h
init.o: init.c protos.h 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