Makefile (7980:4a735b172989) Makefile (7984:0f75de05c240)
1#Makefile for palcode
2#Works on alpha-linux and builds elf executable
3
4#19 December 2003 - Ali Saidi
5
1#Makefile for palcode
2#Works on alpha-linux and builds elf executable
3
4#19 December 2003 - Ali Saidi
5
6GAS = as
7CC = g++
8LD = ld
6GAS = alpha-elf-as
7CC = alpha-elf-g++
8LD = alpha-elf-ld
9#CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++
10CFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++
11GASFLAGS=-m21164
12LDFLAGS=-Ttext 0x4000
13
9#CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++
10CFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++
11GASFLAGS=-m21164
12LDFLAGS=-Ttext 0x4000
13
14SOURCES=platform_tlaser.s osfpal.s
14SOURCES=osfpal.s platform_tlaser.s
15PREPROC := $(SOURCES:.s=.i)
16OBJS := $(SOURCES:.s=.o)
17
18%.i: %.s
19 $(CC) $(CFLAGS) $< > $@
20
21%.o: %.i
22 $(GAS) $(GASFLAGS) -o $@ $<
23
24
25all: $(PREPROC) $(OBJS)
15PREPROC := $(SOURCES:.s=.i)
16OBJS := $(SOURCES:.s=.o)
17
18%.i: %.s
19 $(CC) $(CFLAGS) $< > $@
20
21%.o: %.i
22 $(GAS) $(GASFLAGS) -o $@ $<
23
24
25all: $(PREPROC) $(OBJS)
26 ld $(LDFLAGS) -o osfpal $(OBJS)
26 $(LD) $(LDFLAGS) -o osfpal $(OBJS)
27
28clean:
29 rm -f *.o *.i osfpal
27
28clean:
29 rm -f *.o *.i osfpal