File: Makefile.in

package info (click to toggle)
swig 1.1p5-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 9,428 kB
  • ctags: 5,025
  • sloc: cpp: 21,599; ansic: 13,333; yacc: 3,297; python: 2,794; makefile: 2,182; perl: 1,984; tcl: 1,583; sh: 736; lisp: 201; objc: 143
file content (217 lines) | stat: -rw-r--r-- 6,024 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
#######################################################################
# $Header: /b11/dmb/SWIG/SWIG1.0/RCS/Makefile.in,v 1.1 1996/08/12 01:55:02 dmb Exp dmb $
# Simplified Wrapper and Interface Generator (SWIG)
# 
# Makefile for version 1.1
# Dave Beazley
# January 7, 1997
#
# This makefile is now mostly constructed by ./configure.
#
# $Log: Makefile.in,v $
# Revision 1.1  1996/08/12 01:55:02  dmb
# Initial revision
#
#######################################################################

srcdir = @srcdir@
VPATH = @srcdir@

#
# Set the prefix below to indicate where you want SWIG to install its
# files.   Normally this is /usr/local
# 

prefix     = @prefix@
exec_prefix= @exec_prefix@

# Location of the SWIG library.  Is normally put in /usr/local/lib/swig_lib
# The SWIG library contains configuration files and library modules
# so you should install it someplace where it can be easily accessed.

SWIG_LIB = $(prefix)/lib/swig_lib

# Change these prefixes to set where you would like the
# SWIG binary file (swig) and C library (libswig.a) installed.
# Usually you don't need to change these unless you are
# installing SWIG into a CPU dependent directory such as /usr/local/bin/cpu-type/bin
# 

BIN_DIR        = $(exec_prefix)/bin
LIB_DIR        = $(exec_prefix)/lib

# Other installation locations.   Shouldn't need to change these unless you want

INCLUDE_DIR    = $(prefix)/include
MAN_DIR        = $(prefix)/man/man1

SHELL  = /bin/sh

# --with-PACKAGE options for configure script.
WITH=

#
#
#
# Rules for creation of a .o file from .cxx

all:		swig doc 
		@echo "Compilation complete."
		@echo "Type 'make runtime' to build run-time libraries."
		@echo "Type 'make install' to install."	

swig:  		Makefiles
		@echo "Making the SWIG Parser..."
		@cd SWIG; $(MAKE)
		@echo "Make Modules..."
		@cd Modules; $(MAKE)

Makefiles:	config.status
		@cd SWIG; echo "making Makefile in subdirectory SWIG"; $(MAKE) Makefile
		@cd Modules; echo "making Makefile in subdirectory Modules"; $(MAKE) Makefile

Makefile:	Makefile.in config.status
		CONFIG_FILES=Makefile $(SHELL) config.status

config.status:	$(srcdir)/configure
		if test -f config.status; \
		then $(SHELL) config.status --recheck; \
		     $(SHELL) config.status; \
		else $(SHELL) $(srcdir)/configure $(WITH); \
		fi

.PRECIOUS:	config.status swig

clean:
	rm -f *.o *.so libswig.a swig *~ core
	@cd SWIG; $(MAKE) clean
	@cd Modules; $(MAKE) clean
	@cd Runtime; $(MAKE) clean

nuke: 	clean
	@cd SWIG; $(MAKE) nuke
	@cd Modules; $(MAKE) nuke
	@cd Examples; $(MAKE) nuke
	@cd Tests; $(MAKE) clean
	@cd Runtime; $(MAKE) clean
	rm -f Makefile Makefile.template config.*

doc:	swig
	@echo "Building Documentation for SWIG library..."
	./swig -Iswig_lib -d ./Doc/swiglib ./swig_lib/autodoc.i
	@rm -f swig_lib/autodoc_wrap*


runtime: swig
	@cd Runtime; $(MAKE)

test::
	cd Tests; $(MAKE) parser; $(MAKE) doc; $(MAKE) huge;
	@echo "See test.log for errors"
	@echo "type 'make testclean' to cleanup."

testbuild::
	cd Tests; $(MAKE) build

testall::
	cd Tests; $(MAKE) all; $(MAKE) clean

# Only do this before releasing a distribution

testclean::
	cd Tests; $(MAKE) clean;


# Install the SWIG program

INSTALL        = ./install-sh -c
INSTALL_DATA   = ${INSTALL} -m 644
INSTALL_PROGRAM= ${INSTALL} -m 755

install: install-main install-lib install-runtime
	@echo "Installation complete"

install-runtime:
	@cd Runtime; $(MAKE) install

smallinstall: install-main

install-main:
	@for i in $(LIB_DIR) $(INCLUDE_DIR) $(BIN_DIR) $(prefix)/man $(MAN_DIR); \
	do \
	  if [ ! -d $$i ] ; then \
	         mkdir $$i; \
                 echo "Making directory $$i"; \
                 chmod 755 $$i;\
                 else true; \
             fi; \
            done;
	@echo "Installing $(BIN_DIR)/swig"
	@$(INSTALL_PROGRAM) swig $(BIN_DIR)/swig
	@echo "Installing $(LIB_DIR)/libswig.a..."
	@$(INSTALL_DATA) libswig.a $(LIB_DIR)/libswig.a
	@echo "Installing $(INCLUDE_DIR)/swig.h..."
	@$(INSTALL_DATA) Include/swig.h $(INCLUDE_DIR)/swig.h
	@echo "Installing $(MAN_DIR)/swig.1..."
	@$(INSTALL_DATA) swig.1 $(MAN_DIR)/swig.1
install-lib:
	@for i in $(SWIG_LIB) ; \
	do \
	  if [ ! -d $$i ] ; then \
	         mkdir $$i; \
                 echo "Making directory $$i"; \
                 chmod 755 $$i;\
                 else true; \
             fi; \
            done;
	@echo "Installing the SWIG library"
#	cd $(SWIG_LIB); rm -rf *
	@for i in $(SWIG_LIB)/tcl $(SWIG_LIB)/perl4 $(SWIG_LIB)/perl5 $(SWIG_LIB)/python $(SWIG_LIB)/guile $(SWIG_LIB)/config ; \
	do \
	  if [ ! -d $$i ] ; then \
	         mkdir $$i; \
                 echo "Making directory $$i"; \
                 chmod 755 $$i;\
                 else true; \
             fi; \
            done;
	@cd swig_lib; for i in *.i *.swg; \
	    do \
	    echo "Installing swig_lib/$$i"; \
            ../$(INSTALL_DATA) $$i $(SWIG_LIB)/$$i; \
	    done;
	@cd swig_lib/tcl; for i in *.i *.swg Makefile; \
	    do \
	    echo "Installing swig_lib/tcl/$$i"; \
            ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/tcl/$$i; \
	    done;
	@cd swig_lib/perl4; for i in *.i; \
	    do \
	    echo "Installing swig_lib/perl4/$$i"; \
            ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/perl4/$$i; \
	    done;
	@cd swig_lib/perl5; for i in *.i *.swg Makefile Makefile.pl; \
	    do \
	    echo "Installing swig_lib/perl5/$$i"; \
            ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/perl5/$$i; \
	    done;
	@cd swig_lib/python; for i in *.i *.swg Makefile; \
	    do \
	    echo "Installing swig_lib/python/$$i"; \
            ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/python/$$i; \
	    done;
	@cd swig_lib/guile; for i in *.i *.swg; \
	    do \
	    echo "Installing swig_lib/guile/$$i"; \
            ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/guile/$$i; \
	    done;
	@cd swig_lib/config; for i in *.swg; \
	    do \
	    echo "Installing swig_lib/config/$$i"; \
            ../../$(INSTALL_DATA) $$i $(SWIG_LIB)/config/$$i; \
	    done;
	@echo "Installing Makefile"
	$(INSTALL_DATA) Makefile.template $(SWIG_LIB)/Makefile