Add support for text macros with arguments.
[iverilog.git] / tgt-stub / Makefile.in
bloba603bbe8ae00de0f46f030b7eef2eb0d9ef04bc5
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.20 2007/02/06 05:07:32 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 CC = @CC@
37 INSTALL = @INSTALL@
38 INSTALL_PROGRAM = @INSTALL_PROGRAM@
39 INSTALL_DATA = @INSTALL_DATA@
41 CPPFLAGS = @ident_support@ -I.. -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ @PICFLAG@
42 CFLAGS = -Wall @CFLAGS@
43 LDFLAGS = @LDFLAGS@
45 all: dep stub.tgt
47 dep:
48 mkdir dep
50 %.o: %.c
51 $(CC) $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
52 mv $*.d dep
54 O = stub.o expression.o statement.o
56 ifeq (@WIN32@,yes)
57 TGTLDFLAGS=-L.. -livl
58 TGTDEPLIBS=../libivl.a
59 else
60 TGTLDFLAGS=
61 TGTDEPLIBS=
62 endif
65 stub.tgt: $O $(TGTDEPLIBS)
66 $(CC) @shared@ -o $@ $O $(TGTLDFLAGS)
68 clean:
69 rm -rf *.o dep stub.tgt
71 distclean: clean
72 rm -f Makefile config.status config.log
74 install: all installdirs $(libdir)/ivl/stub.tgt \
75 $(libdir)/ivl/stub.conf $(libdir)/ivl/stub-s.conf
77 $(libdir)/ivl/stub.tgt: ./stub.tgt
78 $(INSTALL_PROGRAM) ./stub.tgt $(libdir)/ivl/stub.tgt
80 $(libdir)/ivl/stub.conf: ./stub.conf
81 $(INSTALL_DATA) ./stub.conf $(libdir)/ivl/stub.conf
83 $(libdir)/ivl/stub-s.conf: ./stub-s.conf
84 $(INSTALL_DATA) ./stub-s.conf $(libdir)/ivl/stub-s.conf
86 installdirs: ../mkinstalldirs
87 $(srcdir)/../mkinstalldirs $(includedir) $(bindir) $(libdir)/ivl
89 uninstall:
90 rm -f $(libdir)/ivl/stub.tgt
91 rm -f $(libdir)/ivl/stub.conf
92 rm -f $(libdir)/ivl/stub-s.conf
95 -include $(patsubst %.o, dep/%.d, $O)