Makefile revision 7997:b91bdbee66c3
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 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 12LDFLAGS=-Ttext 0x4000 13 14SOURCES=osfpal.s platform_tlaser.s platform_m5.s 15PREPROC := $(SOURCES:.s=.i) 16TLOBJS = osfpal.o platform_tlaser.o 17TSOBJS = osfpal.o platform_m5.o 18 19%.i: %.s 20 $(CC) $(CFLAGS) $< > $@ 21 22%.o: %.i 23 $(GAS) $(GASFLAGS) -o $@ $< 24 25all: tlaser tsunami 26 27tlaser: $(PREPROC) $(TLOBJS) 28 $(LD) $(LDFLAGS) -o tl_osfpal $(TLOBJS) 29 30tsunami: $(PREPROC) $(TSOBJS) 31 $(LD) $(LDFLAGS) -o ts_osfpal $(TSOBJS) 32 33clean: 34 rm -f *.o *.i osfpal ts_osfpal tl_osfpal 35 36