Makefile revision 8010:71d56cc8c657
1#Makefile for palcode 2#Works on alpha-linux and builds elf executable 3 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 13TSBOBJS = osfpal.o platform_m5b.o 14TSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o 15 16%.o: %.S 17 $(CC) $(CFLAGS) -o $@ -c $< 18 19all: tsunami tsunami_b64 20 21platform_m5b.o: platform_m5.S 22 $(CC) $(CFLAGS) -DBIG_TSUNAMI -o $@ -c $< 23 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 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 \ 44 ts_osfpal_cache ts_osfpal_unalign tsb_osfpal 45