Makefile revision 8010
17980Ssaidi@eecs.umich.edu#Makefile for palcode
27980Ssaidi@eecs.umich.edu#Works on alpha-linux and builds elf executable
37977Shsul@eecs.umich.edu
48010Ssaidi@eecs.umich.eduGAS = alpha-linux-as
58010Ssaidi@eecs.umich.eduCC = alpha-linux-gcc
68010Ssaidi@eecs.umich.eduLD = alpha-linux-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
138010Ssaidi@eecs.umich.eduTSBOBJS = osfpal.o platform_m5b.o
148007Ssaidi@eecs.umich.eduTSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o
157995Sehallnor@umich.edu
168007Ssaidi@eecs.umich.edu%.o: %.S
178007Ssaidi@eecs.umich.edu	$(CC) $(CFLAGS) -o $@ -c $<
187977Shsul@eecs.umich.edu
198010Ssaidi@eecs.umich.eduall: tsunami tsunami_b64
208010Ssaidi@eecs.umich.edu	
218010Ssaidi@eecs.umich.eduplatform_m5b.o: platform_m5.S
228010Ssaidi@eecs.umich.edu	$(CC) $(CFLAGS) -DBIG_TSUNAMI -o $@ -c $<
238010Ssaidi@eecs.umich.edu	
247995Sehallnor@umich.edu
258007Ssaidi@eecs.umich.edutlaser:  $(TLOBJS)
267995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o
278007Ssaidi@eecs.umich.edu
288007Ssaidi@eecs.umich.edutlaser_copy: $(TLOBJS_COPY) $(TLOBJS)
297995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o tl_osfpal_cache osfpal_cache_copy.o platform_tlaser.o
307995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o tl_osfpal_unalign osfpal_cache_copy_unaligned.o platform_tlaser.o
317977Shsul@eecs.umich.edu
328007Ssaidi@eecs.umich.edutsunami: $(TSOBJS)
337995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o
348007Ssaidi@eecs.umich.edu
358010Ssaidi@eecs.umich.edutsunami_b64: $(TSBOBJS)
368010Ssaidi@eecs.umich.edu	$(LD) $(LDFLAGS) -o tsb_osfpal osfpal.o platform_m5b.o
378010Ssaidi@eecs.umich.edu
388007Ssaidi@eecs.umich.edutsunami_copy: $(TSOBJS) $(TSOBJS_COPY)
397995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o ts_osfpal_cache  osfpal_cache_copy.o platform_m5.o
407995Sehallnor@umich.edu	$(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o
417977Shsul@eecs.umich.edu
427977Shsul@eecs.umich.educlean:
438007Ssaidi@eecs.umich.edu	rm -f *.o tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \
448010Ssaidi@eecs.umich.edu	ts_osfpal_cache ts_osfpal_unalign tsb_osfpal
45