################################################################### # # 9/10/99 - 10/19/99 Mo # for use with dink32 R11 and earlier # compile l2test.c and l2testuitls.s # L2 Cache test and performance monitor enumeration # ################################################################### # Targets: # 1. ppc unix metaware compiler for PowerPC makes l2test.src # 2. cleanppc removes only files associated with ppc # 3. unix unix gcc compiler for UNIX makes l2test.out # 4. cleanunix removes only files associated with unixppc # 5. ppc_pc PC NT metaware compiler for PowerPC makes l2testp.src # 6. cleanppc_pc removes only files associated with ppc_pc # 7. cleanall removes all files associated with all the targets ################################################################### #DEBUG = -DDEBUG # if commented out then debug is off DINKR12 = # required for dink32 R11.0.2 and earlier ############################################################################ # For Target make ppc CC = /risc/tools/pkgs/metaware/bin/hcppc -Hnocopyr -c -Hsds -I./$(@D) PREP = $(CC) -P -Hasmcpp AS = /risc/tools/pkgs/metaware/bin/asppc -c -big_si LKOPT = -Bbase=0x90000 -xm -e main -Bnoheader -Bhardalign \ -xo=$(@) -q -Qn -Cglobals -Csections -Csymbols -Ccrossref LINK = /risc/tools/pkgs/metaware/bin/ldppc $(LKOPT) > $(@D)/xref.txt ppc: l2test.src l2test.src: l2test.o l2testutils.o localio.o $(LINK) l2test.o l2testutils.o localio.o -o l2test cp l2test.src l2test.txt l2test.o: l2test.c l2test.h $(CC) $(DEBUG) $(DINKR12) l2test.c -o l2test.o l2testutils.o: l2testutils.s l2test.h $(PREP) $(DINKR12) l2testutils.s $(AS) l2testutils.i -o l2testutils.o localio.o: localio.c $(CC) $(DEBUG) localio.c -o localio.o cleanppc: rm -f *.o *.i l2test l2test.src xref.txt l2test.txt ######################################################################### ######################################################################## #for unix target ######################################################################## # # 9/10/99 Mlo # compile l2test.c and l2testuitls.c # L2 Cache test # CCU = gcc ASU = gcc LKOPTU = LINKU = gcc unix: l2test.out l2test.out: l2test.ou l2testutils.ou $(LINKU) l2test.ou l2testutils.ou -o l2test.out l2test.ou: l2test.c l2test.h $(CCU) -DNOT_PPC $(DEBUG) -DDINKR12 l2test.c -c -o l2test.ou l2testutils.ou: l2testutils.c $(CCU) $(DEBUG) -DDINKR12 l2testutils.c -c -o l2testutils.ou cleanunix: rm -f *.ou l2test.out ############################################################################ # For Target make ppc using PC CCP = m:/tools/metaware/bin/hcppc -Hnocopyr -c -Hsds -I./$(@D) PREPP = $(CCP) -P -Hasmcpp ASP = m:/tools/metaware/bin/asppc -c -big_si LKOPT = -Bbase=0x90000 -xm -e main -Bnoheader -Bhardalign \ -xo=$(@) -q -Qn -Cglobals -Csections -Csymbols -Ccrossref LINKP = m:/tools/metaware/bin/ldppc $(LKOPT) > $(@D)/xref.txt MVP = mv ppc_pc: l2testp.src l2testp.src: l2test.opc l2testutils.opc localio.opc $(LINKP) l2test.opc l2testutils.opc localio.opc -o l2testp cp l2testp.src l2test.src cp l2testp.src l2test.txt l2test.opc: l2test.c l2test.h $(CCP) $(DEBUG) $(DINKR12) l2test.c -o l2test.opc l2testutils.opc: l2testutils.s l2test.h $(PREPP) $(DINKR12) l2testutils.s $(MVP) l2testutils.i l2testutils.ip $(ASP) l2testutils.ip -o l2testutils.opc localio.opc: localio.c $(CCP) $(DEBUG) localio.c -o localio.opc cleanppc_pc: rm -f *.opc *.ip l2testp l2testp.src xref.txt l2test.src l2test.txt ######################################################################### ######################################################################## #for all targets cleanall: rm -f *.i *.o *.ou *.opc l2test.src xref.txt l2test.out l2test l2testp rm -f l2testp l2testp.src l2test.txt *.ip ########################################################################