2002-05-19 07:21:00 +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.
|
|
|
|
|
#
|
|
|
|
|
# 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-11-17 16:22:46 +01:00
|
|
|
suffix = @install_suffix@
|
2002-05-19 07:21:00 +02:00
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
|
|
|
|
|
VPATH = $(srcdir)
|
|
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
|
libdir = @libdir@
|
|
|
|
|
includedir = $(prefix)/include
|
|
|
|
|
|
2004-02-10 20:25:00 +01:00
|
|
|
CC = @CC@
|
2002-05-19 07:21:00 +02:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
2008-11-20 06:07:34 +01:00
|
|
|
CPPFLAGS = -I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ @PICFLAG@
|
2010-05-13 01:46:22 +02:00
|
|
|
CFLAGS = @WARNING_FLAGS@ @CFLAGS@
|
2002-05-19 07:21:00 +02:00
|
|
|
LDFLAGS = @LDFLAGS@
|
2003-02-22 05:39:32 +01:00
|
|
|
RANLIB = @RANLIB@
|
2002-05-19 07:21:00 +02:00
|
|
|
|
2003-06-04 03:56:20 +02:00
|
|
|
A = a_close.o a_compare_handles.o a_configure.o a_fetch_argc.o \
|
2003-10-10 04:57:45 +02:00
|
|
|
a_fetch_argv.o a_fetch_dir.o a_fetch_fullname.o a_fetch_location.o \
|
2003-06-04 03:56:20 +02:00
|
|
|
a_fetch_param.o a_fetch_range.o a_fetch_tfarg.o a_fetch_time.o \
|
|
|
|
|
a_fetch_type.o a_fetch_type_str.o a_fetch_value.o a_handle_by_name.o \
|
2003-10-10 04:57:45 +02:00
|
|
|
a_handle_hiconn.o a_handle_object.o a_handle_parent.o \
|
|
|
|
|
a_handle_simulated_net.o a_handle_tfarg.o a_initialize.o \
|
|
|
|
|
a_next.o a_next_bit.o a_next_port.o a_next_topmod.o \
|
|
|
|
|
a_object_of_type.o a_product_version.o \
|
2003-04-12 20:57:13 +02:00
|
|
|
a_set_value.o a_vcl.o a_version.o
|
2003-06-04 03:56:20 +02:00
|
|
|
|
2003-10-10 04:57:45 +02:00
|
|
|
O = asynch.o delay.o exprinfo.o finish.o getcstringp.o getinstance.o \
|
|
|
|
|
getlongp.o getp.o getsimtime.o io_print.o math.o mc_scan_plusargs.o \
|
|
|
|
|
nodeinfo.o nump.o putlongp.o putp.o spname.o typep.o workarea.o \
|
|
|
|
|
veriusertfs.o priv.o $A
|
2002-05-19 07:21:00 +02:00
|
|
|
|
2003-10-09 02:37:58 +02:00
|
|
|
all: dep libveriuser.a $(ALL32)
|
2002-05-19 07:21:00 +02:00
|
|
|
|
|
|
|
|
check: all
|
|
|
|
|
|
2009-10-20 07:58:54 +02:00
|
|
|
Makefile: $(srcdir)/Makefile.in
|
|
|
|
|
cd ..; ./config.status --file=libveriuser/$@
|
2008-12-14 06:42:55 +01:00
|
|
|
|
2009-10-20 07:58:54 +02:00
|
|
|
stamp-config-h: $(srcdir)/config.h.in ../config.status
|
|
|
|
|
@rm -f $@
|
|
|
|
|
cd ..; ./config.status --header=libveriuser/config.h
|
|
|
|
|
config.h: stamp-config-h
|
2002-05-19 07:21:00 +02:00
|
|
|
|
2003-10-06 23:27:05 +02:00
|
|
|
libveriuser.o: $O
|
|
|
|
|
$(LD) -r -o $@ $O
|
|
|
|
|
|
|
|
|
|
libveriuser.a: libveriuser.o
|
2002-05-19 07:21:00 +02:00
|
|
|
rm -f $@
|
2003-10-06 23:27:05 +02:00
|
|
|
ar cvq $@ libveriuser.o
|
2003-02-22 05:39:32 +01:00
|
|
|
$(RANLIB) $@
|
2002-05-19 07:21:00 +02:00
|
|
|
|
2003-02-27 23:13:22 +01:00
|
|
|
dep:
|
|
|
|
|
mkdir dep
|
|
|
|
|
|
2009-12-05 00:20:03 +01:00
|
|
|
%.o: %.c config.h
|
2010-05-13 01:46:22 +02:00
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) @DEPENDENCY_FLAG@ -c $< -o $*.o
|
2002-05-19 07:21:00 +02:00
|
|
|
mv $*.d dep
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2009-10-29 03:20:36 +01:00
|
|
|
rm -rf *.o dep libveriuser.a libveriuser.o
|
2002-05-19 07:21:00 +02:00
|
|
|
|
|
|
|
|
distclean: clean
|
2009-10-21 23:27:15 +02:00
|
|
|
rm -f Makefile config.log
|
|
|
|
|
rm -f config.h stamp-config-h
|
2002-05-19 07:21:00 +02:00
|
|
|
|
2008-11-17 16:22:46 +01:00
|
|
|
install:: all installdirs $(libdir)/libveriuser$(suffix).a $(INSTALL32)
|
2002-05-19 07:21:00 +02:00
|
|
|
|
2008-11-17 16:22:46 +01:00
|
|
|
$(libdir)/libveriuser$(suffix).a: ./libveriuser.a
|
2009-02-04 17:44:22 +01:00
|
|
|
$(INSTALL_DATA) ./libveriuser.a "$(DESTDIR)$(libdir)/libveriuser$(suffix).a"
|
2002-05-19 07:21:00 +02:00
|
|
|
|
2009-02-04 17:44:22 +01:00
|
|
|
installdirs: $(srcdir)/../mkinstalldirs
|
|
|
|
|
$(srcdir)/../mkinstalldirs "$(DESTDIR)$(libdir)"
|
2002-05-19 07:21:00 +02:00
|
|
|
|
|
|
|
|
uninstall::
|
2009-02-04 17:44:22 +01:00
|
|
|
rm -f "$(DESTDIR)$(libdir)/libveriuser$(suffix).a"
|
2003-10-09 02:37:58 +02:00
|
|
|
|
2002-05-24 22:29:07 +02:00
|
|
|
-include $(patsubst %.o, dep/%.d, $O)
|