Permalink
Browse files

Makefile cleanups to better support concurrent make.

  • Loading branch information...
1 parent 3a653c7 commit feee40603c9f7dbc403d64951e7e0966a39f90f0 steve committed Feb 27, 2003
View
@@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
-#ident "$Id: Makefile.in,v 1.145 2003/02/17 06:39:47 steve Exp $"
+#ident "$Id: Makefile.in,v 1.146 2003/02/27 22:13:22 steve Exp $"
#
#
SHELL = /bin/sh
@@ -67,19 +67,17 @@ ifeq ('@HAVE_IPAL@','yes')
TARGETS += tgt-pal
endif
-all: ivl@EXEEXT@
+all: dep ivl@EXEEXT@
for dir in $(SUBDIRS) ; do (cd $$dir ; $(MAKE) all); done
- cd vpi ; $(MAKE) all
- cd ivlpp ; $(MAKE) all
- cd driver ; $(MAKE) VERSION=$(VERSION) all
- cd tgt-verilog ; $(MAKE) all
- cd tgt-stub ; $(MAKE) all
for tgt in $(TARGETS); do (cd $$tgt ; $(MAKE) all); done
+ for dir in vpi ivlpp tgt-verilog tgt-stub; \
+ do (cd $$dir ; $(MAKE) all); done
+ cd driver ; $(MAKE) VERSION=$(VERSION) all
# In the windows world, the installer will need a dosify program to
# dosify text files.
ifeq (@WIN32@,yes)
-all: dosify.exe
+all: dep dosify.exe
dosify.exe: dosify.c
$(CC) -o dosify.exe dosify.c
@@ -88,7 +86,7 @@ SUBDIRS += driver-vpi
endif
else
-all: iverilog-vpi
+all: dep iverilog-vpi
endif
# This rule rules the compiler in the trivial hello.vl program to make
@@ -99,24 +97,20 @@ check: all
vvp/vvp -M- -M./vpi ./check.vvp | grep 'Hello, World'
clean:
- rm -f *.o parse.cc parse.cc.output parse.h dep/*.d lexor.cc lexor_keyword.cc ivl@EXEEXT@ libivl.a libvpi.a iverilog-vpi
- cd vpi ; $(MAKE) clean
- cd driver ; $(MAKE) clean
- cd ivlpp ; $(MAKE) clean
- cd tgt-verilog ; $(MAKE) clean
- cd tgt-stub ; $(MAKE) clean
for dir in $(SUBDIRS); do (cd $$dir ; $(MAKE) clean); done
for tgt in $(TARGETS); do (cd $$tgt ; $(MAKE) clean); done
+ for dir in vpi ivlpp tgt-verilog tgt-stub driver; \
+ do (cd $$dir ; $(MAKE) clean); done
+ rm -f *.o parse.cc parse.cc.output parse.h lexor.cc
+ rm -f lexor_keyword.cc libivl.a libvpi.a iverilog-vpi syn-rules.cc*
+ rm -rf dep ivl@EXEEXT@
distclean: clean
for dir in $(SUBDIRS); do (cd $$dir ; $(MAKE) distclean); done
for tgt in $(TARGETS); do (cd $$tgt ; $(MAKE) distclean); done
- rm -f vpi/Makefile
- rm -f ivlpp/Makefile
- rm -f driver/Makefile
- rm -f config.status config.cache config.log
- rm -f Makefile
- rm -f tgt-pal/Makefile tgt-stub/Makefile tgt-verilog/Makefile
+ for dir in vpi ivlpp tgt-verilog tgt-stub driver; \
+ do (cd $$dir ; $(MAKE) distclean); done
+ rm -f Makefile config.status config.log config.cache config.h
TT = t-dll.o t-dll-api.o t-dll-expr.o t-dll-proc.o t-xnf.o
FF = cprop.o nodangle.o synth.o synth2.o syn-rules.o xnfio.o
@@ -166,8 +160,10 @@ iverilog-vpi: iverilog-vpi.sh
chmod +x $@
endif
+dep:
+ mkdir dep
+
%.o: %.cc
- @[ -d dep ] || mkdir dep
$(CXX) @ident_support@ $(CPPFLAGS) $(CXXFLAGS) -MD -c $< -o $*.o
mv $*.d dep/$*.d
@@ -176,8 +172,10 @@ lexor.o: lexor.cc parse.h
parse.o: parse.cc
-parse.h parse.cc: $(srcdir)/parse.y
+parse.cc: $(srcdir)/parse.y
$(YACC) --verbose -t -p VL -d -o parse.cc $(srcdir)/parse.y
+
+parse.h: parse.cc
mv parse.cc.h parse.h || mv parse.hh parse.h
syn-rules.cc: $(srcdir)/syn-rules.y
@@ -200,7 +198,7 @@ iverilog-vpi.pdf: iverilog-vpi.ps
ifeq (@WIN32@,yes)
INSTALL_DOC = $(prefix)/iverilog-vpi.pdf
INSTALL_DOCDIR =
-all: iverilog-vpi.pdf
+all: dep iverilog-vpi.pdf
else
INSTALL_DOC = $(mandir)/man1/iverilog-vpi.1
INSTALL_DOCDIR = $(mandir)/man1
View
@@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
-#ident "$Id: Makefile.in,v 1.3 2003/02/24 22:35:56 steve Exp $"
+#ident "$Id: Makefile.in,v 1.4 2003/02/27 22:13:22 steve Exp $"
#
#
SHELL = /bin/sh
@@ -46,13 +46,15 @@ CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
STRIP = @STRIP@
-all: cadpli.vpl
+all: dep cadpli.vpl
# No specific check operations.
check: all
+dep:
+ mkdir dep
+
%.o: %.c
- @[ -d dep ] || mkdir dep
$(CC) -Wall -I$(srcdir) -I$(srcdir)/.. $(CPPFLAGS) $(CFLAGS) -MD -c $<
mv $*.d dep
@@ -67,7 +69,10 @@ cadpli.vpl: $O ../vvp/libvpi.a ../libveriuser/libveriuser.a
$(CC) @shared@ -o $@ $O $(SYSTEM_VPI_LDFLAGS)
clean:
- rm -f *.o dep/*.d
+ rm -rf *.o dep cadpli.vpl
+
+distclean: clean
+ rm -f Makefile config.status config.log config.cache
install: all installdirs $(libdir)/ivl/cadpli.vpl
View
@@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
-#ident "$Id: Makefile.in,v 1.16 2002/12/08 03:06:30 steve Exp $"
+#ident "$Id: Makefile.in,v 1.17 2003/02/27 22:13:22 steve Exp $"
#
#
SHELL = /bin/sh
@@ -52,6 +52,10 @@ all: iverilog@EXEEXT@
clean:
rm -f *.o lexor.c parse.c parse.h parse.output
rm -f cflexor.c cfparse.c cfparse.h cfparse.output
+ rm -f iverilog@EXEEXT@
+
+distclean: clean
+ rm -f Makefile
O = main.o build_string.o lexor.o parse.o substit.o cflexor.o cfparse.o
View
@@ -18,7 +18,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
-#ident "$Id: Makefile.in,v 1.12 2001/08/10 00:39:22 steve Exp $"
+#ident "$Id: Makefile.in,v 1.13 2003/02/27 22:13:22 steve Exp $"
#
#
SHELL = /bin/sh
@@ -47,7 +47,10 @@ LDFLAGS = @LDFLAGS@
all: ivlpp
clean:
- rm -f *.o lexor.c parse.c parse.h parse.output
+ rm -f *.o lexor.c parse.c parse.h parse.output ivlpp
+
+distclean: clean
+ rm -f Makefile
O = main.o lexor.o parse.o
View
@@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
-#ident "$Id: Makefile.in,v 1.17 2003/02/22 04:39:32 steve Exp $"
+#ident "$Id: Makefile.in,v 1.18 2003/02/27 22:13:22 steve Exp $"
#
#
SHELL = /bin/sh
@@ -54,7 +54,7 @@ O = asynch.o finish.o getcstringp.o getinstance.o getlongp.o \
getp.o getsimtime.o io_print.o mc_scan_plusargs.o nump.o putlongp.o \
putp.o typep.o workarea.o veriusertfs.o priv.o $A
-all: libveriuser.a
+all: dep libveriuser.a
check: all
@@ -66,14 +66,16 @@ libveriuser.a: $O
ar cvq $@ $O
$(RANLIB) $@
+dep:
+ mkdir dep
+
%.o: %.c
- @[ -d dep ] || mkdir dep
$(CC) -Wall $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
mv $*.d dep
clean:
- rm -f *.o dep/*.d libveriuser.a
+ rm -rf *.o dep libveriuser.a
distclean: clean
rm -f Makefile config.status config.log config.cache
View
@@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
-#ident "$Id: Makefile.in,v 1.6 2002/11/05 02:14:41 steve Exp $"
+#ident "$Id: Makefile.in,v 1.7 2003/02/27 22:13:22 steve Exp $"
#
#
SHELL = /bin/sh
@@ -43,10 +43,12 @@ CXXFLAGS = @CXXFLAGS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
-all: fpga.tgt
+all: dep fpga.tgt
+
+dep:
+ mkdir dep
%.o: %.c
- @[ -d dep ] || mkdir dep
$(CC) -Wall @ident_support@ -I$(srcdir)/.. $(CPPFLAGS) -MD -c $< -o $*.o
mv $*.d dep
@@ -69,10 +71,10 @@ Makefile: Makefile.in config.status
./config.status
clean:
- rm -f *.o dep/*.d
+ rm -rf *.o dep fpga.tgt
distclean: clean
- rm -f Makefile config.status config.log config.cache fpga.tgt
+ rm -f Makefile config.status config.log config.cache
check: all
View
@@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
-#ident "$Id: Makefile.in,v 1.7 2002/11/05 02:14:41 steve Exp $"
+#ident "$Id: Makefile.in,v 1.8 2003/02/27 22:13:22 steve Exp $"
#
#
SHELL = /bin/sh
@@ -44,10 +44,12 @@ CXXFLAGS = @CXXFLAGS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
-all: null.tgt
+all: dep null.tgt
+
+dep:
+ mkdir dep
%.o: %.c
- @[ -d dep ] || mkdir dep
$(CC) -Wall -I$(srcdir)/.. $(CPPFLAGS) -MD -c $< -o $*.o
mv $*.d dep
@@ -66,7 +68,7 @@ null.tgt: $O $(TGTDEPLIBS)
$(CC) @shared@ -o $@ $O $(TGTLDFLAGS)
clean:
- rm -f *.o dep/*.d null.tgt
+ rm -rf *.o dep null.tgt
distclean: clean
rm -f Makefile config.status config.log config.cache
View
@@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
-#ident "$Id: Makefile.in,v 1.9 2002/11/05 02:14:41 steve Exp $"
+#ident "$Id: Makefile.in,v 1.10 2003/02/27 22:13:22 steve Exp $"
#
#
SHELL = /bin/sh
@@ -44,10 +44,12 @@ CXXFLAGS = @CXXFLAGS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
-all: pal.tgt
+all: dep pal.tgt
+
+dep:
+ mkdir dep
%.o: %.c
- @[ -d dep ] || mkdir dep
$(CC) -Wall -I$(srcdir)/.. $(CPPFLAGS) -MD -c $< -o $*.o
mv $*.d dep
@@ -66,7 +68,10 @@ pal.tgt: $O $(TGTDEPLIBS)
$(CC) @shared@ -o $@ $O $(TGTLDFLAGS) $(LDFLAGS) -lipal
clean:
- rm -f *.o dep/*.d
+ rm -rf *.o dep pal.tgt
+
+distclean: clean
+ rm -f Makefile
install: all installdirs $(libdir)/ivl/pal.tgt
View
@@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
-#ident "$Id: Makefile.in,v 1.10 2002/11/05 02:14:41 steve Exp $"
+#ident "$Id: Makefile.in,v 1.11 2003/02/27 22:13:22 steve Exp $"
#
#
SHELL = /bin/sh
@@ -44,10 +44,12 @@ CXXFLAGS = @CXXFLAGS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
-all: stub.tgt
+all: dep stub.tgt
+
+dep:
+ mkdir dep
%.o: %.c
- @[ -d dep ] || mkdir dep
$(CC) -Wall -I$(srcdir)/.. $(CPPFLAGS) -MD -c $< -o $*.o
mv $*.d dep
@@ -66,7 +68,10 @@ stub.tgt: $O $(TGTDEPLIBS)
$(CC) @shared@ -o $@ $O $(TGTLDFLAGS)
clean:
- rm -f *.o dep/*.d
+ rm -rf *.o dep stub.tgt
+
+distclean: clean
+ rm -f Makefile
install: all installdirs $(libdir)/ivl/stub.tgt \
$(includedir)/vpi_user.h
Oops, something went wrong.

0 comments on commit feee406

Please sign in to comment.