Upstream version 1.3.40
[profile/ivi/swig.git] / Tools / WAD / Tcl / Makefile.in
1 #######################################################################
2 # WAD Makefile
3 #
4 # David Beazley
5 # January 1, 2001
6 #######################################################################
7
8 # These are the files that make up the WAD core
9 SRCS = wadtcl.c
10 OBJS = wadtcl.o
11 INCLUDE = -I../Include -I.  $(SINCLUDE)
12 WADOPT     = @WADOPT@
13
14 # Location of your Tcl installation
15 TCLINCLUDE = @TCLINCLUDE@
16 TCLSRCS    = wadtclinit.cxx
17 TCLOBJS    = wadtclinit.o
18
19 # C Compiler
20 CC = @CC@
21 CFLAGS = #@CCSHARED@
22
23 # C++ Compiler
24 CXX = @CXX@
25 CXXFLAGS = #@CXXSHARED@
26
27 # Linking options
28 CLINK = 
29 CXXLINK = @CXXLINK@
30
31 # Rules for creation of a .o file from .cxx
32 .SUFFIXES: .cxx
33 .cxx.o:
34         $(CXX) $(CXXFLAGS) $(WADOPT) $(INCLUDE) -c -o $*.o $<
35
36 .c.o:
37         $(CC) $(CFLAGS) $(TCLINCLUDE) $(WADOPT) $(INCLUDE) -c -o $*.o $<
38
39 tcl: $(OBJS) $(TCLOBJS)
40         $(CXXLINK) $(OBJS) $(TCLOBJS) -o libwadtcl.so -L.. -lwadcore
41         cp libwadtcl.so ..
42
43 wc::
44         wc $(SRCS)
45
46 semi::
47         @egrep ";" $(SRCS) $(TCLSRCS) | wc
48
49 clean::
50         rm -f *.o *.so *~ 
51
52
53
54