diff --git a/tests/project.conf b/tests/project.conf index 02076c2..5daa654 100644 --- a/tests/project.conf +++ b/tests/project.conf @@ -1,5 +1,5 @@ targets=clint.log,shlint.log,tests.log,xmllint.log -dist=Makefile,tests.sh,binary/project.conf,binary/Makefile.Darwin,binary/Makefile.DeforaOS,binary/Makefile.NetBSD,binary/Makefile.Windows,include/project.conf,include/Makefile.NetBSD,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,package/project.conf,package/Makefile.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD +dist=Makefile,tests.sh,binary/project.conf,binary/Makefile.Darwin,binary/Makefile.DeforaOS,binary/Makefile.NetBSD,binary/Makefile.Windows,include/project.conf,include/Makefile.NetBSD,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,package/project.conf,package/Makefile.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,verilog/Makefile.NetBSD [clint.log] type=script @@ -14,7 +14,7 @@ depends=../doc/scripts/shlint.sh [tests.log] type=script script=./tests.sh -depends=$(OBJDIR)../src/configure$(EXEEXT),binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,include/project.conf,include/Makefile.NetBSD,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,package/project.conf,package/Makefile.NetBSD,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,tests.sh +depends=$(OBJDIR)../src/configure$(EXEEXT),binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,include/project.conf,include/Makefile.NetBSD,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,package/project.conf,package/Makefile.NetBSD,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,,verilog/project.conf,verilog/Makefile.NetBSD,tests.sh [xmllint.log] type=script diff --git a/tests/tests.sh b/tests/tests.sh index b3f701e..8f4e018 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -86,6 +86,7 @@ _tests() _test "NetBSD" "package" || ret=2 _test "NetBSD" "plugin" || ret=2 _test "NetBSD" "script" || ret=2 + _test "NetBSD" "verilog" || ret=2 _test "Windows" "binary" || ret=2 _test "Windows" "library" || ret=2 _test "Windows" "libtool" || ret=2 diff --git a/tests/verilog/Makefile.NetBSD b/tests/verilog/Makefile.NetBSD new file mode 100644 index 0000000..40a5249 --- /dev/null +++ b/tests/verilog/Makefile.NetBSD @@ -0,0 +1,38 @@ +TARGETS = $(OBJDIR)top.vvp $(OBJDIR)top.fpga +OBJDIR = +PREFIX = /usr/local +DESTDIR = +BINDIR = $(PREFIX)/bin +SBINDIR = $(PREFIX)/sbin +EXEEXT = +RM = rm -f +LN = ln -f +MKDIR = mkdir -m 0755 -p +INSTALL = install + + +all: $(TARGETS) + +top.vvp_OBJS = $(OBJDIR)top.vvp +top.vvp_VFLAGS = $(VFLAGSF) $(VFLAGS) + +top.fpga_OBJS = $(OBJDIR)top.fpga +top.fpga_VFLAGS = $(VFLAGSF) $(VFLAGS) -tfpga + +$(OBJDIR)top.vvp: top.v + $(VERILOG) $(top.vvp_VFLAGS) -o $(OBJDIR)top.vvp top.v + +$(OBJDIR)top.fpga: top.v + $(VERILOG) $(top.fpga_VFLAGS) -o $(OBJDIR)top.fpga top.v + +clean: + $(RM) -- $(top.vvp_OBJS) $(top.fpga_OBJS) + +distclean: clean + $(RM) -- $(TARGETS) + +install: $(TARGETS) + +uninstall: + +.PHONY: all clean distclean install uninstall diff --git a/tests/verilog/project.conf b/tests/verilog/project.conf new file mode 100644 index 0000000..3617e42 --- /dev/null +++ b/tests/verilog/project.conf @@ -0,0 +1,10 @@ +targets=top.vvp,top.fpga + +[top.fpga] +type=object +vflags=-tfpga +sources=top.v + +[top.vvp] +type=object +sources=top.v