Makefile revision 8007:013cbe16f1d6
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 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 13TSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o 14 15%.o: %.S 16 $(CC) $(CFLAGS) -o $@ -c $< 17 18all: tlaser tsunami 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 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 \ 36 ts_osfpal_cache ts_osfpal_unalign 37