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
|
|
|
|
|
#
|
2001-06-12 05:53:10 +02:00
|
|
|
#ident "$Id: Makefile.in,v 1.44 2001/06/12 03:53:10 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)
|
|
|
|
|
|
2000-11-11 01:38:40 +01:00
|
|
|
bindir = @bindir@
|
|
|
|
|
libdir = @libdir@
|
1999-04-26 04:35:43 +02:00
|
|
|
includedir = $(prefix)/include
|
|
|
|
|
|
2001-03-19 05:37:59 +01:00
|
|
|
CC = @CC@ -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../vpip
|
|
|
|
|
CXX = @CXX@ -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../vpip
|
1999-04-26 04:35:43 +02:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
|
|
CPPFLAGS = @CPPFLAGS@ @DEFS@
|
|
|
|
|
CXXFLAGS = @CXXFLAGS@
|
1999-10-28 02:47:24 +02:00
|
|
|
CFLAGS = @CFLAGS@
|
1999-04-26 04:35:43 +02:00
|
|
|
LDFLAGS = @LDFLAGS@
|
2000-09-30 05:20:47 +02:00
|
|
|
STRIP = @STRIP@
|
|
|
|
|
|
2000-10-03 18:15:35 +02:00
|
|
|
O = vvm_add_sub.o vvm_bit.o vvm_calltf.o vvm_clshift.o vvm_compare.o \
|
|
|
|
|
vvm_event.o vvm_ff.o vvm_force.o \
|
2000-12-15 21:05:16 +01:00
|
|
|
vvm_func.o vvm_gates.o vvm_idiv.o vvm_imod.o vvm_memory.o vvm_mult.o \
|
2001-06-12 05:53:10 +02:00
|
|
|
vvm_mux.o vvm_nexus.o vvm_pevent.o vvm_signal.o vvm_thread.o vvm_udp.o \
|
|
|
|
|
vvm_vpi.o
|
2000-10-03 18:15:35 +02:00
|
|
|
|
|
|
|
|
|
2001-03-14 20:27:44 +01:00
|
|
|
all: libvvm.a
|
2000-09-30 05:20:47 +02:00
|
|
|
|
2000-10-28 19:27:59 +02:00
|
|
|
libvvm.a: $O
|
|
|
|
|
rm -f $@
|
|
|
|
|
ar cvq $@ $O
|
|
|
|
|
|
2000-10-04 19:08:31 +02:00
|
|
|
%.o: %.cc
|
1999-04-26 04:45:08 +02:00
|
|
|
@[ -d dep ] || mkdir dep
|
2000-01-24 01:18:20 +01:00
|
|
|
$(CXX) -Wall -fno-exceptions $(CPPFLAGS) $(CXXFLAGS) -MD -c $< -o $*.o
|
1999-04-26 04:35:43 +02:00
|
|
|
mv $*.d dep
|
|
|
|
|
|
1999-10-28 02:47:24 +02:00
|
|
|
|
1999-04-26 04:35:43 +02:00
|
|
|
clean:
|
2001-03-14 20:27:44 +01:00
|
|
|
rm -f *.o dep/*.d libvvm.a
|
1999-04-26 04:35:43 +02:00
|
|
|
|
2000-09-30 05:20:47 +02:00
|
|
|
install:: all installdirs \
|
|
|
|
|
$(libdir)/libvvm.a \
|
1999-05-09 03:24:59 +02:00
|
|
|
$(includedir)/vvm.h \
|
|
|
|
|
$(includedir)/vvm_func.h \
|
|
|
|
|
$(includedir)/vvm_gates.h \
|
2000-03-16 20:03:03 +01:00
|
|
|
$(includedir)/vvm_nexus.h \
|
|
|
|
|
$(includedir)/vvm_signal.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
|
|
|
|
1999-05-09 03:24:59 +02:00
|
|
|
$(libdir)/libvvm.a: ./libvvm.a
|
2000-01-24 00:54:36 +01:00
|
|
|
$(INSTALL_DATA) ./libvvm.a $(libdir)/libvvm.a
|
1999-05-09 03:24:59 +02:00
|
|
|
|
2000-09-30 05:20:47 +02:00
|
|
|
|
1999-05-09 03:24:59 +02:00
|
|
|
$(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
|
|
|
|
|
|
2000-03-16 20:03:03 +01:00
|
|
|
$(includedir)/vvm_nexus.h: $(srcdir)/vvm_nexus.h
|
|
|
|
|
$(INSTALL_DATA) $(srcdir)/vvm_nexus.h $(includedir)/vvm_nexus.h
|
|
|
|
|
|
|
|
|
|
$(includedir)/vvm_signal.h: $(srcdir)/vvm_signal.h
|
|
|
|
|
$(INSTALL_DATA) $(srcdir)/vvm_signal.h $(includedir)/vvm_signal.h
|
|
|
|
|
|
1999-05-09 03:24:59 +02:00
|
|
|
$(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
|
|
|
|
|
|
|
|
installdirs: mkinstalldirs
|
1999-10-16 22:48:15 +02:00
|
|
|
$(srcdir)/mkinstalldirs $(includedir) $(libdir)
|
1999-04-26 04:35:43 +02:00
|
|
|
|
2000-10-28 19:27:59 +02:00
|
|
|
uninstall::
|
1999-05-09 03:24:59 +02:00
|
|
|
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
|
2000-03-16 20:03:03 +01:00
|
|
|
rm -f $(includedir)/vvm_nexus.h
|
|
|
|
|
rm -f $(includedir)/vvm_signal.h
|
1999-05-09 03:24:59 +02:00
|
|
|
rm -f $(includedir)/vvm_thread.h
|
|
|
|
|
|
1999-04-26 04:35:43 +02:00
|
|
|
|
2000-02-13 20:18:27 +01:00
|
|
|
-include $(patsubst %.o, dep/%.d, $O $P)
|