Add support for text macros with arguments.
[iverilog.git] / libveriuser / Makefile.in
blob54c647a81673425bf000edcd5441bc63b500bcc4
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.36 2007/02/06 05:07:32 steve Exp $"
22 SHELL = /bin/sh
25 prefix = @prefix@
26 exec_prefix = @exec_prefix@
27 srcdir = @srcdir@
29 VPATH = $(srcdir)
31 bindir = @bindir@
32 libdir = @libdir@
33 libdir64 = @libdir64@
34 includedir = $(prefix)/include
36 CC = @CC@
37 INSTALL = @INSTALL@
38 INSTALL_PROGRAM = @INSTALL_PROGRAM@
39 INSTALL_DATA = @INSTALL_DATA@
41 CPPFLAGS = @ident_support@ -I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ @PICFLAG@
42 CFLAGS = -Wall @CFLAGS@
43 LDFLAGS = @LDFLAGS@
44 RANLIB = @RANLIB@
46 A = a_close.o a_compare_handles.o a_configure.o a_fetch_argc.o \
47 a_fetch_argv.o a_fetch_dir.o a_fetch_fullname.o a_fetch_location.o \
48 a_fetch_param.o a_fetch_range.o a_fetch_tfarg.o a_fetch_time.o \
49 a_fetch_type.o a_fetch_type_str.o a_fetch_value.o a_handle_by_name.o \
50 a_handle_hiconn.o a_handle_object.o a_handle_parent.o \
51 a_handle_simulated_net.o a_handle_tfarg.o a_initialize.o \
52 a_next.o a_next_bit.o a_next_port.o a_next_topmod.o \
53 a_object_of_type.o a_product_version.o \
54 a_set_value.o a_vcl.o a_version.o
56 O = asynch.o delay.o exprinfo.o finish.o getcstringp.o getinstance.o \
57 getlongp.o getp.o getsimtime.o io_print.o math.o mc_scan_plusargs.o \
58 nodeinfo.o nump.o putlongp.o putp.o spname.o typep.o workarea.o \
59 veriusertfs.o priv.o $A
61 ifeq (@enable_vvp32@,yes)
62 ALL32 = all32
63 INSTALL32 = install32
64 UNINSTALL32 = uninstall32
65 endif
67 all: dep libveriuser.a $(ALL32)
69 check: all
71 Makefile: Makefile.in config.status
72 ./config.status
74 libveriuser.o: $O
75 $(LD) -r -o $@ $O
77 libveriuser.a: libveriuser.o
78 rm -f $@
79 ar cvq $@ libveriuser.o
80 $(RANLIB) $@
82 dep:
83 mkdir dep
85 %.o: %.c
86 $(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
87 mv $*.d dep
90 clean:
91 rm -rf *.o dep libveriuser.a libveriuser.o bin32
93 distclean: clean
94 rm -f Makefile config.status config.log config.cache config.h
96 install:: all installdirs $(libdir64)/libveriuser.a $(INSTALL32)
98 $(libdir64)/libveriuser.a: ./libveriuser.a
99 $(INSTALL_DATA) ./libveriuser.a $(libdir64)/libveriuser.a
101 installdirs: mkinstalldirs
102 $(srcdir)/mkinstalldirs $(includedir) $(libdir64)
104 uninstall::
105 rm -f $(libdir64)/libveriuser.a
107 ifeq (@enable_vvp32@,yes)
108 all32: bin32 bin32/libveriuser.a
110 bin32:
111 mkdir bin32
113 bin32/%.o: %.c
114 $(CC) -m32 $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $@
116 bin32/libveriuser.o: $(addprefix bin32/,$O)
117 $(LD) -melf_i386 -r -o $@ $(addprefix bin32/,$O)
119 bin32/libveriuser.a: bin32/libveriuser.o
120 rm -f $@
121 ar cvq $@ bin32/libveriuser.o
122 $(RANLIB) $@
124 install32: $(libdir)/libveriuser.a
126 $(libdir)/libveriuser.a: bin32/libveriuser.a
127 $(INSTALL_DATA) bin32/libveriuser.a $(libdir)/libveriuser.a
129 -include $(patsubst bin32/%.o, bin32/%.d, $(addprefix bin32/,$O))
130 endif
132 -include $(patsubst %.o, dep/%.d, $O)