2002-11-13 02:50:11 +01:00
|
|
|
#
|
|
|
|
|
# This source code is free software; you can redistribute it
|
|
|
|
|
# and/or modify it in source code form under the terms of the GNU
|
|
|
|
|
# Library General Public License as published by the Free Software
|
|
|
|
|
# Foundation; either version 2 of the License, or (at your option)
|
2002-12-08 04:06:30 +01:00
|
|
|
# any later version.
|
2002-11-13 02:50:11 +01:00
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU Library General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
|
# License along with this program; if not, write to the Free
|
|
|
|
|
# Software Foundation, Inc.,
|
|
|
|
|
# 59 Temple Place - Suite 330
|
|
|
|
|
# Boston, MA 02111-1307, USA
|
|
|
|
|
#
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
2008-05-23 01:31:09 +02:00
|
|
|
VERSION = 0.9.devel
|
2002-11-13 02:50:11 +01:00
|
|
|
|
2008-11-17 16:22:46 +01:00
|
|
|
suffix = @install_suffix@
|
|
|
|
|
|
2002-11-13 02:50:11 +01:00
|
|
|
prefix = @prefix@
|
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
srcdir = @srcdir@
|
2008-01-24 21:10:31 +01:00
|
|
|
datarootdir = @datarootdir@
|
2002-11-13 02:50:11 +01:00
|
|
|
|
|
|
|
|
VPATH = $(srcdir)
|
|
|
|
|
|
2008-11-17 16:22:46 +01:00
|
|
|
suffix = @install_suffix@
|
|
|
|
|
|
2002-11-13 02:50:11 +01:00
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
|
includedir = $(prefix)/include
|
|
|
|
|
mandir = @mandir@
|
|
|
|
|
|
|
|
|
|
dllib=@DLLIB@
|
|
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
2008-11-20 06:07:34 +01:00
|
|
|
CPPFLAGS = -I. -I$(srcdir)/.. -DVERSION='"$(VERSION)"' @CPPFLAGS@ @DEFS@
|
2009-01-01 17:33:26 +01:00
|
|
|
CFLAGS = -Wall @CFLAGS@
|
2002-11-13 02:50:11 +01:00
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
|
|
2008-12-19 02:22:25 +01:00
|
|
|
all: iverilog-vpi@EXEEXT@
|
2002-11-13 02:50:11 +01:00
|
|
|
|
2008-05-23 01:31:09 +02:00
|
|
|
check: all
|
|
|
|
|
|
2002-11-13 02:50:11 +01:00
|
|
|
clean:
|
2008-12-17 01:24:09 +01:00
|
|
|
rm -f *.o config.h iverilog-vpi@EXEEXT@
|
2002-11-13 02:50:11 +01:00
|
|
|
|
2002-12-04 04:33:38 +01:00
|
|
|
distclean: clean
|
2008-12-17 01:24:09 +01:00
|
|
|
rm -f Makefile config.log
|
2002-12-04 04:33:38 +01:00
|
|
|
|
2008-12-13 00:30:15 +01:00
|
|
|
Makefile: $(srcdir)/Makefile.in ../config.status
|
|
|
|
|
../config.status --file=$@
|
|
|
|
|
|
2002-11-13 18:25:10 +01:00
|
|
|
O = main.o res.o
|
2002-11-13 02:50:11 +01:00
|
|
|
|
|
|
|
|
iverilog-vpi@EXEEXT@: $O
|
|
|
|
|
$(CC) $(LDFLAGS) $O -o iverilog-vpi@EXEEXT@ @EXTRALIBS@
|
|
|
|
|
|
2008-12-19 02:22:25 +01:00
|
|
|
main.o: main.c config.h
|
|
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c $(srcdir)/main.c
|
2002-11-13 02:50:11 +01:00
|
|
|
|
2008-12-19 02:22:25 +01:00
|
|
|
|
|
|
|
|
config.h: $(srcdir)/config.h.in Makefile
|
2007-12-30 21:19:36 +01:00
|
|
|
sed -e 's;@IVLCC@;@CC@;' -e 's;@IVLCXX@;@CXX@;' \
|
2008-11-17 20:13:56 +01:00
|
|
|
-e 's;@SUFFIX@;$(suffix);g' \
|
2009-01-01 04:27:37 +01:00
|
|
|
-e 's;@IVLCFLAGS@;$(CFLAGS);' \
|
2007-12-30 21:19:36 +01:00
|
|
|
-e 's;@SHARED@;@shared@;' $< > $@
|
|
|
|
|
|
2002-11-13 18:25:10 +01:00
|
|
|
# Windows specific...
|
|
|
|
|
res.o: res.rc
|
|
|
|
|
windres -i res.rc -o res.o
|
|
|
|
|
#
|
2002-11-13 02:50:11 +01:00
|
|
|
|
2008-11-17 16:22:46 +01:00
|
|
|
install: all installdirs $(bindir)/iverilog-vpi$(suffix)@EXEEXT@
|
2002-11-13 02:50:11 +01:00
|
|
|
|
2008-11-17 16:22:46 +01:00
|
|
|
$(bindir)/iverilog-vpi$(suffix)@EXEEXT@: ./iverilog-vpi@EXEEXT@
|
|
|
|
|
$(INSTALL_PROGRAM) ./iverilog-vpi@EXEEXT@ $(bindir)/iverilog-vpi$(suffix)@EXEEXT@
|
2002-11-13 02:50:11 +01:00
|
|
|
|
|
|
|
|
installdirs: ../mkinstalldirs
|
|
|
|
|
$(srcdir)/../mkinstalldirs $(bindir)
|
|
|
|
|
|
|
|
|
|
uninstall:
|
2008-11-17 16:22:46 +01:00
|
|
|
rm -f $(bindir)/iverilog-vpi$(suffix)@EXEEXT@
|