diff Makefile @ 93:8f5d61239b93

*** empty log message ***
author kono
date Sun, 09 Mar 2003 18:31:00 +0900
parents 25654dc29ecc
children 1ad7045741a7
line wrap: on
line diff
--- a/Makefile	Fri Mar 07 06:10:41 2003 +0900
+++ b/Makefile	Sun Mar 09 18:31:00 2003 +0900
@@ -8,10 +8,13 @@
 CONVERTER=conv/c.o conv/null.o
 # conv/c2cbc.o conv/cbc2c.o
 
+# CODE=mc-code-ia32.o
+CODE=mc-code-powerpc.o
+
 all: mc 
 
-mc : mc-parse.o mc-codegen.o mc-code-ia32.o mc-tree.o $(CONVERTER)
-	$(CC) -g mc-parse.o mc-codegen.o mc-code-ia32.o \
+mc : mc-parse.o mc-codegen.o $(CODE) mc-tree.o $(CONVERTER)
+	$(CC) -g mc-parse.o mc-codegen.o $(CODE) \
 		mc-tree.o $(CONVERTER) -o $@
 
 conv/conv.h: conv_func.tbl conv_func.pl
@@ -29,7 +32,8 @@
 	makedepend mc-code-ia32.c mc-code.h mc-codegen.c mc-codegen.h \
 		mc-parse.c mc-tree.c mc.h \
 	    conv/c.c conv/c.h conv/c2cbc.c conv/c2cbc.h conv/cbc2c.c \
-	    conv/cbc2c.h conv/conv.h conv/convdef.h conv/null.c conv/null.h
+	    conv/cbc2c.h conv/conv.h conv/convdef.h conv/null.c conv/null.h \
+                mc-code-powerpc.c
 
 clean :
 	-rm -f *.bak *.s *.o *.cc mc mc1 a.out *~ core* */*.o *.bak test/*.s test/*.cc test/*.o test/*.bak test/*~ conv/*.s conv/*.cc conv/*.o conv/*.bak conv/*~
@@ -56,52 +60,57 @@
 mc-code-ia32.o: /usr/include/machine/types.h /usr/include/ppc/types.h
 mc-code-ia32.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
 mc-code-ia32.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
-mc-code-ia32.o: conv/conv.h conv/c.h mc-codegen.h
+mc-code-ia32.o: conv/conv.h mc-codegen.h
 mc-codegen.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
 mc-codegen.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
 mc-codegen.o: /usr/include/machine/types.h /usr/include/ppc/types.h
 mc-codegen.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
 mc-codegen.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
-mc-codegen.o: conv/conv.h conv/c.h mc-codegen.h mc-code.h
+mc-codegen.o: conv/conv.h mc-codegen.h mc-code.h
 mc-parse.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
 mc-parse.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
 mc-parse.o: /usr/include/machine/types.h /usr/include/ppc/types.h
 mc-parse.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
 mc-parse.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
-mc-parse.o: conv/conv.h conv/c.h mc-codegen.h
+mc-parse.o: conv/conv.h mc-codegen.h
 mc-tree.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
 mc-tree.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
 mc-tree.o: /usr/include/machine/types.h /usr/include/ppc/types.h
 mc-tree.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
 mc-tree.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
-mc-tree.o: conv/conv.h conv/c.h
+mc-tree.o: conv/conv.h
 mc.o: /usr/include/stdio.h /usr/include/sys/types.h
 mc.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
 mc.o: /usr/include/machine/types.h /usr/include/ppc/types.h
 mc.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
 mc.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h conv/conv.h
-mc.o: conv/c.h
 conv/c.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
 conv/c.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
 conv/c.o: /usr/include/machine/types.h /usr/include/ppc/types.h
 conv/c.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
 conv/c.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h conv/conv.h
-conv/c.o: conv/c.h conv/convdef.h
+conv/c.o: conv/convdef.h conv/c.h
 conv/c2cbc.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
 conv/c2cbc.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
 conv/c2cbc.o: /usr/include/machine/types.h /usr/include/ppc/types.h
 conv/c2cbc.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
 conv/c2cbc.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
-conv/c2cbc.o: conv/conv.h conv/c.h
+conv/c2cbc.o: conv/conv.h
 conv/cbc2c.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
 conv/cbc2c.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
 conv/cbc2c.o: /usr/include/machine/types.h /usr/include/ppc/types.h
 conv/cbc2c.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
 conv/cbc2c.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
-conv/cbc2c.o: conv/conv.h conv/c.h
+conv/cbc2c.o: conv/conv.h
 conv/null.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
 conv/null.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
 conv/null.o: /usr/include/machine/types.h /usr/include/ppc/types.h
 conv/null.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
 conv/null.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
-conv/null.o: conv/conv.h conv/c.h
+conv/null.o: conv/conv.h conv/convdef.h conv/null.h
+mc-code-powerpc.o: mc.h /usr/include/stdio.h /usr/include/sys/types.h
+mc-code-powerpc.o: /usr/include/sys/appleapiopts.h /usr/include/sys/cdefs.h
+mc-code-powerpc.o: /usr/include/machine/types.h /usr/include/ppc/types.h
+mc-code-powerpc.o: /usr/include/machine/ansi.h /usr/include/ppc/ansi.h
+mc-code-powerpc.o: /usr/include/machine/endian.h /usr/include/ppc/endian.h
+mc-code-powerpc.o: conv/conv.h mc-codegen.h