107 lines
2.4 KiB
Makefile
107 lines
2.4 KiB
Makefile
#
|
|
# 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
|
|
#
|
|
#ident "$Id: Makefile.in,v 1.8 2004/02/10 19:25:01 steve Exp $"
|
|
#
|
|
#
|
|
SHELL = /bin/sh
|
|
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = $(srcdir)
|
|
|
|
bindir = @bindir@
|
|
libdir = @libdir@
|
|
includedir = $(prefix)/include
|
|
|
|
CC = @CC@
|
|
INSTALL = @INSTALL@
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
CPPFLAGS = @ident_support@ -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@
|
|
CFLAGS = -Wall @CFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
STRIP = @STRIP@
|
|
|
|
P = vpi_bit.o vpi_callback.o \
|
|
vpi_const.o vpi_iter.o vpi_memory.o vpi_null.o \
|
|
vpi_priv.o vpi_scope.o vpi_signal.o vpi_simulation.o vpi_systask.o vpi_time.o \
|
|
vpi_mcd.o vpi_vlog_info.o
|
|
|
|
|
|
|
|
all: dep libvpip.a
|
|
|
|
check: all
|
|
|
|
Makefile: Makefile.in config.status
|
|
./config.status
|
|
|
|
libvpip.a: $P
|
|
ld -r -o vpip.o $P
|
|
rm -f $@
|
|
ar cvq $@ vpip.o
|
|
|
|
libvvm.a: $O
|
|
rm -f $@
|
|
ar cvq $@ $O
|
|
|
|
dep:
|
|
mkdir dep
|
|
|
|
%.o: %.c
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
|
|
mv $*.d dep
|
|
|
|
|
|
clean:
|
|
rm -rf *.o dep libvpip.a
|
|
|
|
distclean: clean
|
|
rm -f Makefile config.status config.log config.cache
|
|
|
|
install:: all installdirs \
|
|
$(libdir)/libvpip.a \
|
|
$(includedir)/vpi_priv.h
|
|
|
|
$(libdir)/libvpip.a: ./libvpip.a
|
|
$(INSTALL_DATA) ./libvpip.a $(libdir)/libvpip.a
|
|
|
|
$(includedir)/vpi_priv.h: $(srcdir)/vpi_priv.h
|
|
$(INSTALL_DATA) $(srcdir)/vpi_priv.h $(includedir)/vpi_priv.h
|
|
|
|
installdirs: mkinstalldirs
|
|
$(srcdir)/mkinstalldirs $(includedir) $(libdir)
|
|
|
|
uninstall::
|
|
rm -f $(libdir)/libvpip.a
|
|
rm -f $(includedir)/vpi_priv.h
|
|
|
|
ifeq (@WIN32@,yes)
|
|
uninstall::
|
|
rm -f $(bindir)/vpip.dll
|
|
endif
|
|
|
|
-include $(patsubst %.o, dep/%.d, $O $P)
|