2003-02-16 03:23:54 +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)
|
|
|
|
|
# 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-05-23 01:31:09 +02:00
|
|
|
VERSION = 0.9.devel
|
2003-02-16 03:23:54 +01:00
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
|
|
|
|
|
VPATH = $(srcdir)
|
|
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
|
libdir = @libdir@
|
|
|
|
|
includedir = $(prefix)/include
|
|
|
|
|
|
2008-01-26 02:33:32 +01:00
|
|
|
vpidir = @libdir@/ivl
|
2003-10-02 23:30:40 +02:00
|
|
|
|
2003-02-16 03:23:54 +01:00
|
|
|
CC = @CC@
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
2004-02-10 20:25:00 +01:00
|
|
|
CPPFLAGS = @ident_support@ -I$(srcdir) -I$(srcdir)/.. -I.. @CPPFLAGS@ @DEFS@ @PICFLAG@
|
|
|
|
|
CFLAGS = -Wall @CFLAGS@
|
2003-02-16 03:23:54 +01:00
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
|
|
2003-10-09 03:07:20 +02:00
|
|
|
SHARED = @shared@
|
|
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
|
|
all: dep cadpli.vpl $(ALL32)
|
2003-02-16 03:23:54 +01:00
|
|
|
|
2003-02-24 23:35:56 +01:00
|
|
|
# No specific check operations.
|
|
|
|
|
check: all
|
|
|
|
|
|
2003-02-27 23:13:22 +01:00
|
|
|
dep:
|
|
|
|
|
mkdir dep
|
|
|
|
|
|
2003-02-16 03:23:54 +01:00
|
|
|
%.o: %.c
|
2004-02-10 20:25:00 +01:00
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $<
|
2003-02-16 03:23:54 +01:00
|
|
|
mv $*.d dep
|
|
|
|
|
|
|
|
|
|
O = cadpli.o
|
|
|
|
|
|
2003-10-06 23:27:05 +02:00
|
|
|
SYSTEM_VPI_LDFLAGS = -L../vvp -lvpi
|
2008-05-23 01:31:09 +02:00
|
|
|
ifeq (@MINGW32@,yes)
|
2004-03-11 07:06:59 +01:00
|
|
|
SYSTEM_VPI_LDFLAGS += @EXTRALIBS@
|
2003-02-16 03:23:54 +01:00
|
|
|
endif
|
|
|
|
|
|
2003-10-06 23:27:05 +02:00
|
|
|
cadpli.vpl: $O ../vvp/libvpi.a ../libveriuser/libveriuser.o
|
|
|
|
|
$(CC) @shared@ -o $@ $O ../libveriuser/libveriuser.o $(SYSTEM_VPI_LDFLAGS)
|
2003-02-16 03:23:54 +01:00
|
|
|
|
|
|
|
|
clean:
|
2004-10-04 03:09:07 +02:00
|
|
|
rm -rf *.o dep cadpli.vpl bin32
|
2003-02-27 23:13:22 +01:00
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
rm -f Makefile config.status config.log config.cache
|
2003-02-16 03:23:54 +01:00
|
|
|
|
2003-10-09 03:07:20 +02:00
|
|
|
install: all installdirs $(vpidir)/cadpli.vpl $(INSTALL32)
|
2003-02-16 03:23:54 +01:00
|
|
|
|
2003-10-02 23:30:40 +02:00
|
|
|
$(vpidir)/cadpli.vpl: ./cadpli.vpl
|
2008-08-31 02:09:51 +02:00
|
|
|
$(INSTALL_PROGRAM) ./cadpli.vpl $(DESTDIR)$(vpidir)/cadpli.vpl
|
2003-02-16 03:23:54 +01:00
|
|
|
|
|
|
|
|
installdirs: ../mkinstalldirs
|
2008-08-31 02:09:51 +02:00
|
|
|
$(srcdir)/../mkinstalldirs $(DESTDIR)$(vpidir)
|
2003-02-16 03:23:54 +01:00
|
|
|
|
2003-10-09 03:07:20 +02:00
|
|
|
uninstall: $(UNINSTALL32)
|
2008-08-31 02:09:51 +02:00
|
|
|
rm -f $(DESTDIR)$(vpidir)/cadpli.vpl
|
2003-02-16 03:23:54 +01:00
|
|
|
|
2006-02-15 19:42:42 +01:00
|
|
|
uninstall32:
|
|
|
|
|
|
2003-02-16 03:23:54 +01:00
|
|
|
-include $(patsubst %.o, dep/%.d, $O)
|