iverilog/cadpli/Makefile.in

98 lines
2.3 KiB
Makefile
Raw 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
2012-08-29 03:41:23 +02:00
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
2003-02-16 03:23:54 +01:00
#
SHELL = /bin/sh
suffix = @install_suffix@
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$(suffix)
2003-02-16 03:23:54 +01:00
CC = @CC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
ifeq (@srcdir@,.)
INCLUDE_PATH = -I. -I..
else
INCLUDE_PATH = -I. -I.. -I$(srcdir) -I$(srcdir)/..
endif
CPPFLAGS = $(INCLUDE_PATH) @CPPFLAGS@ @DEFS@ @PICFLAG@
CFLAGS = @WARNING_FLAGS@ @WARNING_FLAGS_CC@ @CFLAGS@
2003-02-16 03:23:54 +01:00
LDFLAGS = @LDFLAGS@
O = cadpli.o
2003-10-09 03:07:20 +02:00
all: dep cadpli.vpl $(ALL32)
2003-02-16 03:23:54 +01:00
2003-02-24 23:35:56 +01:00
check: all
clean:
rm -rf *.o dep cadpli.vpl
distclean: clean
rm -f Makefile config.log
cppcheck: $(O:.o=.c)
cppcheck --enable=all --std=c99 --std=c++03 -f $(INCLUDE_PATH) $^
Makefile: $(srcdir)/Makefile.in ../config.status
cd ..; ./config.status --file=cadpli/$@
dep:
mkdir dep
2003-02-16 03:23:54 +01:00
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) @DEPENDENCY_FLAG@ -c $<
2003-02-16 03:23:54 +01:00
mv $*.d dep
SYSTEM_VPI_LDFLAGS = -L../vpi -lvpi
ifeq (@MINGW32@,yes)
SYSTEM_VPI_LDFLAGS += @EXTRALIBS@
2003-02-16 03:23:54 +01:00
endif
2019-10-22 17:51:14 +02:00
cadpli.vpl: $O ../vpi/libvpi.a ../libveriuser/libveriuser.o
$(CC) @shared@ $(LDFLAGS) -o $@ $O ../libveriuser/libveriuser.o $(SYSTEM_VPI_LDFLAGS)
2003-02-16 03:23:54 +01:00
install: all installdirs installfiles
2003-02-16 03:23:54 +01:00
F = ./cadpli.vpl
installfiles: $(F) | installdirs
$(INSTALL_PROGRAM) ./cadpli.vpl "$(DESTDIR)$(vpidir)/cadpli.vpl"
2003-02-16 03:23:54 +01:00
installdirs: $(srcdir)/../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)