Skip to content
Browse files

Make MinGW compile using a remote build directory.

This patch fixes a few MinGW specific issues that prevented it
from building in a remote directory.
  • Loading branch information...
1 parent 342ec15 commit 8abe0d7d7132c62cdabc6a97d1e75699f11c8eff @caryr caryr committed with
Showing with 4 additions and 4 deletions.
  1. +2 −2 Makefile.in
  2. +2 −2 driver-vpi/Makefile.in
View
4 Makefile.in
@@ -79,8 +79,8 @@ all: dep config.h _pli_types.h version_tag.h ivl@EXEEXT@ version.exe
# dosify text files.
ifeq (@MINGW32@,yes)
all: dep dosify.exe
-dosify.exe: dosify.c
- $(CC) -o dosify.exe dosify.c
+dosify.exe: $(srcdir)/dosify.c
+ $(CC) -o dosify.exe $(srcdir)/dosify.c
endif
# This rule rules the compiler in the trivial hello.vl program to make
View
4 driver-vpi/Makefile.in
@@ -56,14 +56,14 @@ distclean: clean
rm -f Makefile config.log
Makefile: $(srcdir)/Makefile.in ../config.status
- ../config.status --file=$@
+ cd ..; ./config.status --file=driver-vpi/$@
O = main.o res.o
iverilog-vpi@EXEEXT@: $O
$(CC) $(LDFLAGS) $O -o iverilog-vpi@EXEEXT@ @EXTRALIBS@
-main.o: main.c config.h
+main.o: $(srcdir)/main.c config.h
$(CC) $(CPPFLAGS) $(CFLAGS) -c $(srcdir)/main.c

0 comments on commit 8abe0d7

Please sign in to comment.
Something went wrong with that request. Please try again.