Makefile (7998:916491cca643) Makefile (8007:013cbe16f1d6)
1#Makefile for palcode
2#Works on alpha-linux and builds elf executable
3
1#Makefile for palcode
2#Works on alpha-linux and builds elf executable
3
4#19 December 2003 - Ali Saidi
5
6GAS = alpha-elf-as
7CC = alpha-elf-g++
8LD = alpha-elf-ld
4GAS = alpha-elf-as
5CC = alpha-elf-g++
6LD = alpha-elf-ld
9#CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++
10CFLAGS=-I . -I ../h -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++
11GASFLAGS=-m21164
7CFLAGS=-I . -I ../h -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -Wa,-m21164
12LDFLAGS=-Ttext 0x4000
13
8LDFLAGS=-Ttext 0x4000
9
14SOURCES=osfpal.s osfpal_cache_copy.s osfpal_cache_copy_unaligned.s platform_tlaser.s \
15 platform_m5.s
16PREPROC := $(SOURCES:.s=.i)
17TLOBJS = osfpal.o osfpal_cache_copy.o osfpal_cache_copy_unaligned.o platform_tlaser.o
18TSOBJS = osfpal.o osfpal_cache_copy.o osfpal_cache_copy_unaligned.o platform_m5.o
10TLOBJS = osfpal.o platform_tlaser.o
11TLOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o
12TSOBJS = osfpal.o platform_m5.o
13TSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o
19
14
20%.i: %.s
21 $(CC) $(CFLAGS) $< > $@
15%.o: %.S
16 $(CC) $(CFLAGS) -o $@ -c $<
22
17
23%.o: %.i
24 $(GAS) $(GASFLAGS) -o $@ $<
25
26all: tlaser tsunami
27
18all: tlaser tsunami
19
28tlaser: $(PREPROC) $(TLOBJS)
20tlaser: $(TLOBJS)
29 $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o
21 $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o
22
23tlaser_copy: $(TLOBJS_COPY) $(TLOBJS)
30 $(LD) $(LDFLAGS) -o tl_osfpal_cache osfpal_cache_copy.o platform_tlaser.o
31 $(LD) $(LDFLAGS) -o tl_osfpal_unalign osfpal_cache_copy_unaligned.o platform_tlaser.o
32
24 $(LD) $(LDFLAGS) -o tl_osfpal_cache osfpal_cache_copy.o platform_tlaser.o
25 $(LD) $(LDFLAGS) -o tl_osfpal_unalign osfpal_cache_copy_unaligned.o platform_tlaser.o
26
33tsunami: $(PREPROC) $(TSOBJS)
27tsunami: $(TSOBJS)
34 $(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o
28 $(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o
29
30tsunami_copy: $(TSOBJS) $(TSOBJS_COPY)
35 $(LD) $(LDFLAGS) -o ts_osfpal_cache osfpal_cache_copy.o platform_m5.o
36 $(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o
37
38clean:
31 $(LD) $(LDFLAGS) -o ts_osfpal_cache osfpal_cache_copy.o platform_m5.o
32 $(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o
33
34clean:
39 rm -f *.o *.i tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \
35 rm -f *.o tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \
40 ts_osfpal_cache ts_osfpal_unalign
36 ts_osfpal_cache ts_osfpal_unalign