Allow srcdir builds
authorSteve Chamberlain <sac@cygnus>
Mon, 4 Jan 1993 01:55:53 +0000 (01:55 +0000)
committerSteve Chamberlain <sac@cygnus>
Mon, 4 Jan 1993 01:55:53 +0000 (01:55 +0000)
sim/h8300/Makefile.in

index b84792dba6fc6d0fd1ad38731c384215a8abfe7c..a5933514ba402fe79566a9e57dbbfeeefe7c8d42 100644 (file)
@@ -61,10 +61,10 @@ 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 p1.c p2.c p3.c | cb >code.c
+       cat $(VPATH)/p1.c p2.c $(VPATH)/p3.c | cb >code.c
        indent code.c
 
 p2.c:writecode
@@ -74,7 +74,7 @@ p2.c:writecode
 writecode:writecode.o
 
 writecode.o:writecode.c
-       $(CC) -g $(CSEARCH) -c writecode.c 
+       cc -g $(CSEARCH) -c $(VPATH)/writecode.c