Makefile (8007:013cbe16f1d6) Makefile (8010:71d56cc8c657)
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
4GAS = alpha-elf-as
5CC = alpha-elf-g++
6LD = alpha-elf-ld
4GAS = alpha-linux-as
5CC = alpha-linux-gcc
6LD = alpha-linux-ld
7CFLAGS=-I . -I ../h -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -Wa,-m21164
8LDFLAGS=-Ttext 0x4000
9
10TLOBJS = osfpal.o platform_tlaser.o
11TLOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o
12TSOBJS = osfpal.o platform_m5.o
7CFLAGS=-I . -I ../h -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -Wa,-m21164
8LDFLAGS=-Ttext 0x4000
9
10TLOBJS = osfpal.o platform_tlaser.o
11TLOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o
12TSOBJS = osfpal.o platform_m5.o
13TSBOBJS = osfpal.o platform_m5b.o
13TSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o
14
15%.o: %.S
16 $(CC) $(CFLAGS) -o $@ -c $<
17
14TSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o
15
16%.o: %.S
17 $(CC) $(CFLAGS) -o $@ -c $<
18
18all: tlaser tsunami
19all: tsunami tsunami_b64
20
21platform_m5b.o: platform_m5.S
22 $(CC) $(CFLAGS) -DBIG_TSUNAMI -o $@ -c $<
23
19
20tlaser: $(TLOBJS)
21 $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o
22
23tlaser_copy: $(TLOBJS_COPY) $(TLOBJS)
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
27tsunami: $(TSOBJS)
28 $(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o
29
24
25tlaser: $(TLOBJS)
26 $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o
27
28tlaser_copy: $(TLOBJS_COPY) $(TLOBJS)
29 $(LD) $(LDFLAGS) -o tl_osfpal_cache osfpal_cache_copy.o platform_tlaser.o
30 $(LD) $(LDFLAGS) -o tl_osfpal_unalign osfpal_cache_copy_unaligned.o platform_tlaser.o
31
32tsunami: $(TSOBJS)
33 $(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o
34
35tsunami_b64: $(TSBOBJS)
36 $(LD) $(LDFLAGS) -o tsb_osfpal osfpal.o platform_m5b.o
37
30tsunami_copy: $(TSOBJS) $(TSOBJS_COPY)
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:
35 rm -f *.o tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \
38tsunami_copy: $(TSOBJS) $(TSOBJS_COPY)
39 $(LD) $(LDFLAGS) -o ts_osfpal_cache osfpal_cache_copy.o platform_m5.o
40 $(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o
41
42clean:
43 rm -f *.o tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \
36 ts_osfpal_cache ts_osfpal_unalign
44 ts_osfpal_cache ts_osfpal_unalign tsb_osfpal