iverilog/driver-vpi/Makefile.in

91 lines
2.2 KiB
Makefile
Raw Normal View History

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
VERSION = 0.9.devel
2002-11-13 02:50:11 +01:00
suffix = @install_suffix@
2002-11-13 02:50:11 +01:00
prefix = @prefix@
exec_prefix = @exec_prefix@
srcdir = @srcdir@
datarootdir = @datarootdir@
2002-11-13 02:50:11 +01:00
VPATH = $(srcdir)
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@
CPPFLAGS = -I. -I$(srcdir)/.. -DVERSION='"$(VERSION)"' @CPPFLAGS@ @DEFS@
2004-02-10 20:25:00 +01:00
CFLAGS = -Wall @CFLAGS@
2002-11-13 02:50:11 +01:00
LDFLAGS = @LDFLAGS@
all: iverilog-vpi@EXEEXT@
check: all
2002-11-13 02:50:11 +01:00
clean:
rm -f *.o config.h
2002-11-13 02:50:11 +01:00
rm -f iverilog-vpi@EXEEXT@
2002-12-04 04:33:38 +01:00
distclean: clean
rm -f Makefile
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@
main.o: main.c config.h
2004-02-10 20:25:00 +01:00
$(CC) $(CPPFLAGS) $(CFLAGS) -c $(srcdir)/main.c
2002-11-13 02:50:11 +01:00
config.h: config.h.in
sed -e 's;@IVLCC@;@CC@;' -e 's;@IVLCXX@;@CXX@;' \
-e 's;@SUFFIX@;$(suffix);g' \
-e 's;@IVLCFLAGS@;@CXXFLAGS@;' \
-e 's;@SHARED@;@shared@;' $< > $@
# Windows specific...
res.o: res.rc
windres -i res.rc -o res.o
#
2002-11-13 02:50:11 +01:00
install: all installdirs $(bindir)/iverilog-vpi$(suffix)@EXEEXT@
2002-11-13 02:50:11 +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:
rm -f $(bindir)/iverilog-vpi$(suffix)@EXEEXT@