Makefile revision 8007
17980Ssaidi@eecs.umich.edu#Makefile for palcode
27980Ssaidi@eecs.umich.edu#Works on alpha-linux and builds elf executable
37977Shsul@eecs.umich.edu
47984Ssaidi@eecs.umich.eduGAS = alpha-elf-as
57984Ssaidi@eecs.umich.eduCC = alpha-elf-g++
67984Ssaidi@eecs.umich.eduLD = alpha-elf-ld
78007Ssaidi@eecs.umich.eduCFLAGS=-I . -I ../h -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -Wa,-m21164
87980Ssaidi@eecs.umich.eduLDFLAGS=-Ttext 0x4000
97977Shsul@eecs.umich.edu
108007Ssaidi@eecs.umich.eduTLOBJS = osfpal.o  platform_tlaser.o
118007Ssaidi@eecs.umich.eduTLOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o
128007Ssaidi@eecs.umich.eduTSOBJS = osfpal.o platform_m5.o
138007Ssaidi@eecs.umich.eduTSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o
147995Sehallnor@umich.edu
158007Ssaidi@eecs.umich.edu%.o: %.S
168007Ssaidi@eecs.umich.edu	$(CC) $(CFLAGS) -o $@ -c $<
177977Shsul@eecs.umich.edu
187985Ssaidi@eecs.umich.eduall: tlaser tsunami
197995Sehallnor@umich.edu
208007Ssaidi@eecs.umich.edutlaser:  $(TLOBJS)
217995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o
228007Ssaidi@eecs.umich.edu
238007Ssaidi@eecs.umich.edutlaser_copy: $(TLOBJS_COPY) $(TLOBJS)
247995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o tl_osfpal_cache osfpal_cache_copy.o platform_tlaser.o
257995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o tl_osfpal_unalign osfpal_cache_copy_unaligned.o platform_tlaser.o
267977Shsul@eecs.umich.edu
278007Ssaidi@eecs.umich.edutsunami: $(TSOBJS)
287995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o
298007Ssaidi@eecs.umich.edu
308007Ssaidi@eecs.umich.edutsunami_copy: $(TSOBJS) $(TSOBJS_COPY)
317995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o ts_osfpal_cache  osfpal_cache_copy.o platform_m5.o
327995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o
337977Shsul@eecs.umich.edu
347977Shsul@eecs.umich.educlean:
358007Ssaidi@eecs.umich.edu	rm -f *.o tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \
367998Ssaidi@eecs.umich.edu	ts_osfpal_cache ts_osfpal_unalign
37