Now works in a cross build environment
authorSteve Chamberlain <sac@cygnus>
Mon, 4 Jan 1993 15:45:35 +0000 (15:45 +0000)
committerSteve Chamberlain <sac@cygnus>
Mon, 4 Jan 1993 15:45:35 +0000 (15:45 +0000)
sim/h8300/Makefile.in

index a5933514ba402fe79566a9e57dbbfeeefe7c8d42..1a87e92b0b1f2893367968a17f637d86a7067c02 100644 (file)
@@ -61,7 +61,7 @@ DEP = mkdep
 TARGETLIB = libsim.a
 
 run:   code.o run.o
-       cc -o run code.o run.o ../bfd/libbfd.a ../libiberty/libiberty.a
+       $(CC) -o run code.o run.o ../bfd/libbfd.a ../libiberty/libiberty.a
  
 code.c:p1.c p2.c p3.c
        cat $(VPATH)/p1.c p2.c $(VPATH)/p3.c | cb >code.c
@@ -71,10 +71,8 @@ p2.c:writecode
        ./writecode >p2.c
 
 
-writecode:writecode.o
-
-writecode.o:writecode.c
-       cc -g $(CSEARCH) -c $(VPATH)/writecode.c 
+writecode:writecode.c
+       $(CC_FOR_BUILD) -o writecode -g $(CSEARCH) -c $(srcdir)/writecode.c