Add support for text macros with arguments.
[iverilog.git] / cadpli / Makefile.in
blob61051e6de172ca8d50184ab60bd1a867c5b29e4a
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 #ident "$Id: Makefile.in,v 1.13 2007/02/06 05:07:31 steve Exp $"
22 SHELL = /bin/sh
24 VERSION = 0.0
26 prefix = @prefix@
27 exec_prefix = @exec_prefix@
28 srcdir = @srcdir@
30 VPATH = $(srcdir)
32 bindir = @bindir@
33 libdir = @libdir@
34 includedir = $(prefix)/include
36 vpidir = @libdir@/ivl/@vpidir1@
38 CC = @CC@
39 INSTALL = @INSTALL@
40 INSTALL_PROGRAM = @INSTALL_PROGRAM@
41 INSTALL_DATA = @INSTALL_DATA@
43 CPPFLAGS = @ident_support@ -I$(srcdir) -I$(srcdir)/.. -I.. @CPPFLAGS@ @DEFS@ @PICFLAG@
44 CFLAGS = -Wall @CFLAGS@
45 LDFLAGS = @LDFLAGS@
47 SHARED = @shared@
49 all:
51 ifeq (@enable_vvp32@,yes)
52 vpidir32 = $(libdir)/ivl/@vpidir2@
53 ALL32 = all32
54 INSTALL32 = install32
55 UNINSTALL32 = uninstall32
56 include $(srcdir)/enable_vvp32.mk
57 endif
59 all: dep cadpli.vpl $(ALL32)
61 # No specific check operations.
62 check: all
64 dep:
65 mkdir dep
67 %.o: %.c
68 $(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $<
69 mv $*.d dep
71 O = cadpli.o
73 SYSTEM_VPI_LDFLAGS = -L../vvp -lvpi
74 ifeq (@MING32@,yes)
75 SYSTEM_VPI_LDFLAGS += @EXTRALIBS@
76 endif
78 cadpli.vpl: $O ../vvp/libvpi.a ../libveriuser/libveriuser.o
79 $(CC) @shared@ -o $@ $O ../libveriuser/libveriuser.o $(SYSTEM_VPI_LDFLAGS)
81 clean:
82 rm -rf *.o dep cadpli.vpl bin32
84 distclean: clean
85 rm -f Makefile config.status config.log config.cache
87 install: all installdirs $(vpidir)/cadpli.vpl $(INSTALL32)
89 $(vpidir)/cadpli.vpl: ./cadpli.vpl
90 $(INSTALL_PROGRAM) ./cadpli.vpl $(vpidir)/cadpli.vpl
92 installdirs: ../mkinstalldirs
93 $(srcdir)/../mkinstalldirs $(vpidir)
95 uninstall: $(UNINSTALL32)
96 rm -f $(vpidir)/cadpli.vpl
98 uninstall32:
100 ifeq (@enable_vvp32@,yes)
101 include $(srcdir)/enable_vvp32.mk
102 endif
104 -include $(patsubst %.o, dep/%.d, $O)