iverilog/vvm/Makefile.in

108 lines
2.9 KiB
Makefile
Raw Normal View History

1999-04-26 04:35:43 +02: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)
# any later version. In order to redistribute the software in
# binary form, you will need a Picture Elements Binary Software
# License.
#
# 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
#
1999-08-28 04:10:57 +02:00
#ident "$Id: Makefile.in,v 1.5 1999/08/28 02:10:57 steve Exp $"
1999-04-26 04:35:43 +02:00
#
#
SHELL = /bin/sh
VERSION = 0.0
prefix = @prefix@
exec_prefix = @exec_prefix@
srcdir = @srcdir@
VPATH = $(srcdir)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
includedir = $(prefix)/include
CC = @CC@
CXX = @CXX@ -I../vpi
1999-04-26 04:35:43 +02:00
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
CPPFLAGS = @CPPFLAGS@ @DEFS@
CXXFLAGS = @CXXFLAGS@
LDFLAGS = @LDFLAGS@
all: libvvm.a
%.o dep/%.d: %.cc
1999-04-26 04:45:08 +02:00
@[ -d dep ] || mkdir dep
1999-04-26 04:35:43 +02:00
$(CXX) -Wall -fno-exceptions $(CXXFLAGS) -MD -c $< -o $*.o
mv $*.d dep
O = vvm_bit.o vvm_calltf.o vvm_event.o vvm_monitor.o vvm_pevent.o \
vvm_simulation.o vvm_thread.o
1999-04-26 04:35:43 +02:00
libvvm.a: $O
rm -f $@
ar cvqf $@ $O
clean:
rm -f *.o dep/*.d
install: all installdirs $(libdir)/libvvm.a \
$(includedir)/vvm.h \
1999-08-28 04:10:57 +02:00
$(includedir)/vpi_priv.h \
$(includedir)/vvm_func.h \
$(includedir)/vvm_gates.h \
1999-08-28 04:10:57 +02:00
$(includedir)/vvm_thread.h \
$(includedir)/vvm_calltf.h
1999-04-26 04:35:43 +02:00
$(libdir)/libvvm.a: ./libvvm.a
$(INSTALL_PROGRAM) ./libvvm.a $(libdir)/libvvm.a
$(includedir)/vvm.h: $(srcdir)/vvm.h
$(INSTALL_DATA) $(srcdir)/vvm.h $(includedir)/vvm.h
$(includedir)/vvm_calltf.h: $(srcdir)/vvm_calltf.h
$(INSTALL_DATA) $(srcdir)/vvm_calltf.h $(includedir)/vvm_calltf.h
$(includedir)/vvm_func.h: $(srcdir)/vvm_func.h
$(INSTALL_DATA) $(srcdir)/vvm_func.h $(includedir)/vvm_func.h
$(includedir)/vvm_gates.h: $(srcdir)/vvm_gates.h
$(INSTALL_DATA) $(srcdir)/vvm_gates.h $(includedir)/vvm_gates.h
$(includedir)/vvm_thread.h: $(srcdir)/vvm_thread.h
$(INSTALL_DATA) $(srcdir)/vvm_thread.h $(includedir)/vvm_thread.h
1999-04-26 04:35:43 +02:00
1999-08-28 04:10:57 +02:00
$(includedir)/vpi_priv.h: $(srcdir)/vpi_priv.h
$(INSTALL_DATA) $(srcdir)/vpi_priv.h $(includedir)/vpi_priv.h
1999-04-26 04:35:43 +02:00
installdirs: mkinstalldirs
$(srcdir)/mkinstalldirs $(includedir) $(bindir)
uninstall:
rm -f $(libdir)/libvvm.a
rm -f $(includedir)/vvm.h
rm -f $(includedir)/vvm_calltf.h
rm -f $(includedir)/vvm_func.h
rm -f $(includedir)/vvm_gates.h
rm -f $(includedir)/vvm_thread.h
1999-08-28 04:10:57 +02:00
rm -f $(includedir)/vpi_priv.h
1999-04-26 04:35:43 +02:00
-include $(patsubst %.o, dep/%.d, $O)