diff Makefile @ 94:1ad7045741a7 dbinop

float dbinop fix
author kono
date Wed, 12 Mar 2003 15:28:44 +0900
parents 8f5d61239b93
children e09f9de6f5d3
line wrap: on
line diff
--- a/Makefile	Sun Mar 09 18:31:00 2003 +0900
+++ b/Makefile	Wed Mar 12 15:28:44 2003 +0900
@@ -7,15 +7,20 @@
 PRINTF= # printf.c
 CONVERTER=conv/c.o conv/null.o
 # conv/c2cbc.o conv/cbc2c.o
-
+COMPLIB = mc-parse.o mc-codegen.o mc-tree.o
 # CODE=mc-code-ia32.o
 CODE=mc-code-powerpc.o
 
-all: mc 
+all: mc mc-ia32 mc-powerpc
+
+mc:  mc-powerpc
+	cp mc-powerpc mc
 
-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 $@
+mc-powerpc : mc-code-powerpc.o $(COMPLIB) $(CONVERTER)
+	$(CC) -g mc-code-powerpc.o $(COMPLIB) $(CONVERTER) -o $@
+
+mc-ia32 : mc-code-ia32.o $(COMPLIB) $(CONVERTER)
+	$(CC) -g mc-code-ia32.o $(COMPLIB) $(CONVERTER) -o $@
 
 conv/conv.h: conv_func.tbl conv_func.pl
 	perl conv_func.pl
@@ -36,14 +41,14 @@
                 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/*~
+	-rm -f mc mc-ia32 mc-powerpc *.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/*~
 
 mc1 : b00.s b01.s mc-codegen.o mc-tree.o $(CONVERTER)
 	$(CC) -g -o $@ $(PRINTF) b00.s b01.s mc-codegen.o mc-tree.o $(CONVERTER)
-b00.s : mc-parse.c mc
-	./mc -s -ob00.s mc-parse.c
-b01.s : mc-code-ia32.c mc
-	./mc -s -ob01.s mc-code-ia32.c 
+b00.s : mc-parse.c $(MC)
+	./$(MC) -s -ob00.s mc-parse.c
+b01.s : mc-code-ia32.c $(MC)
+	./$(MC) -s -ob01.s mc-code-ia32.c 
 b10.s : mc-parse.c mc1
 	./mc1 -s -ob10.s mc-parse.c
 b11.s : mc-code-ia32.c $(PRINTF) mc1