iverilog/cadpli/Makefile.in

90 lines
2.1 KiB
Makefile
Raw Permalink Normal View History

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
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
vpidir = @libdir@/ivl
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
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
ifeq (@MINGW32@,yes)
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
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
$(vpidir)/cadpli.vpl: ./cadpli.vpl
$(INSTALL_PROGRAM) ./cadpli.vpl $(DESTDIR)$(vpidir)/cadpli.vpl
2003-02-16 03:23:54 +01:00
installdirs: ../mkinstalldirs
$(srcdir)/../mkinstalldirs $(DESTDIR)$(vpidir)
2003-02-16 03:23:54 +01:00
2003-10-09 03:07:20 +02:00
uninstall: $(UNINSTALL32)
rm -f $(DESTDIR)$(vpidir)/cadpli.vpl
2003-02-16 03:23:54 +01:00
uninstall32:
2003-02-16 03:23:54 +01:00
-include $(patsubst %.o, dep/%.d, $O)