.gitignore: update to ignore all make created files
[keystone-rtos/ibl.git] / src / test / test2 / makestage2
index 2338dff6a336e997e20b4401d85e80ad0853ad68..f58a61fd4e3a2b56e5a4f4170f8808365275a83d 100644 (file)
@@ -6,23 +6,25 @@ CFLAGS= -g -c -mv 6400+ $(OPT)
 
 .PHONY: test2
 
-test2: gen_cdefdep test2_$(ENDIAN).blob
+test2: gen_cdefdep utils test2_$(ENDIAN).blob
 
 ifeq ($(ENDIAN),little)
- LIB= $(TOOLSC6X)/cgtools/lib/rts64plus.lib
+ LIB= $(TOOLSC6X)/lib/rts64plus.lib
  OPT=
+ C2B_OPT=
 else
- LIB= $(TOOLSC6X)/cgtools/lib/rts64pluse.lib
+ LIB= $(TOOLSC6X)/lib/rts64pluse.lib
  OPT= -me
+ C2B_OPT= -swap
 endif
 
 
 
 test2_$(ENDIAN).blob: test2_$(ENDIAN).bccs
-       ..\util\ccs2bin $< $@
+       ..\..\util\btoccs\ccs2bin $(C2B_OPT) $< $@
 
 test2_$(ENDIAN).bccs: test2_$(ENDIAN).b
-       ..\util\b2ccs $< $@
+       ..\..\util\btoccs\b2ccs $< $@
 
 test2_$(ENDIAN).b: test2_$(ENDIAN).out test2.rmd
        hex6x $< test2.rmd
@@ -39,7 +41,7 @@ c0.obj: c0.c cdefdep
 test2.obj: test2.c cdefdep
        $(CC) $(CFLAGS) $<
 
-test2ini.obj: test2ini.s
+test2ini.obj: test2ini.s cdefdep
        $(CC) $(CFLAGS) $<
 
 gen_cdefdep:
@@ -48,4 +50,17 @@ gen_cdefdep:
        @sh -c 'if diff -q cdefdep.tmp cdefdep ; then echo same ; else cp cdefdep.tmp cdefdep ; fi '
 
        
-
+utils:
+       make -C ../../util/btoccs
+
+
+clean:
+       rm -rf test2_little.blob test2_big.blob
+       rm -rf test2_little.bccs test2_big.bccs
+       rm -rf test2_little.b    test2_big.b
+       rm -rf test2_little.out  test2_big.out
+       rm -rf c0.obj
+       rm -rf test2.obj
+       rm -rf test2ini.obj
+       rm -rf test2im.hex
+       rm -rf test2.map