Fix botched processing of MUX with constant select.
[sverilog.git] / cadpli / Makefile.in
blob9d88858473d95d2c4d818d5ac23d7fa5f4c48673
2 # This source code is free software; you can redistribute it
3 # and/or modify it in source code form under the terms of the GNU
4 # Library General Public License as published by the Free Software
5 # Foundation; either version 2 of the License, or (at your option)
6 # any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU Library General Public License for more details.
13 # You should have received a copy of the GNU Library General Public
14 # License along with this program; if not, write to the Free
15 # Software Foundation, Inc.,
16 # 59 Temple Place - Suite 330
17 # Boston, MA 02111-1307, USA
19 SHELL = /bin/sh
21 VERSION = 0.9.devel
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25 srcdir = @srcdir@
27 VPATH = $(srcdir)
29 bindir = @bindir@
30 libdir = @libdir@
31 includedir = $(prefix)/include
33 vpidir = @libdir@/ivl
35 CC = @CC@
36 INSTALL = @INSTALL@
37 INSTALL_PROGRAM = @INSTALL_PROGRAM@
38 INSTALL_DATA = @INSTALL_DATA@
40 CPPFLAGS = @ident_support@ -I$(srcdir) -I$(srcdir)/.. -I.. @CPPFLAGS@ @DEFS@ @PICFLAG@
41 CFLAGS = -Wall @CFLAGS@
42 LDFLAGS = @LDFLAGS@
44 SHARED = @shared@
46 all:
48 all: dep cadpli.vpl $(ALL32)
50 # No specific check operations.
51 check: all
53 dep:
54 mkdir dep
56 %.o: %.c
57 $(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $<
58 mv $*.d dep
60 O = cadpli.o
62 SYSTEM_VPI_LDFLAGS = -L../vvp -lvpi
63 ifeq (@MINGW32@,yes)
64 SYSTEM_VPI_LDFLAGS += @EXTRALIBS@
65 endif
67 cadpli.vpl: $O ../vvp/libvpi.a ../libveriuser/libveriuser.o
68 $(CC) @shared@ -o $@ $O ../libveriuser/libveriuser.o $(SYSTEM_VPI_LDFLAGS)
70 clean:
71 rm -rf *.o dep cadpli.vpl bin32
73 distclean: clean
74 rm -f Makefile config.status config.log config.cache
76 install: all installdirs $(vpidir)/cadpli.vpl $(INSTALL32)
78 $(vpidir)/cadpli.vpl: ./cadpli.vpl
79 $(INSTALL_PROGRAM) ./cadpli.vpl $(vpidir)/cadpli.vpl
81 installdirs: ../mkinstalldirs
82 $(srcdir)/../mkinstalldirs $(vpidir)
84 uninstall: $(UNINSTALL32)
85 rm -f $(vpidir)/cadpli.vpl
87 uninstall32:
89 -include $(patsubst %.o, dep/%.d, $O)