/[ascend]/trunk/tcltk98/generic/interface/Makefile.in
ViewVC logotype

Contents of /trunk/tcltk98/generic/interface/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 170 - (show annotations) (download)
Fri Jan 6 08:55:06 2006 UTC (18 years, 5 months ago) by johnpye
File size: 3886 byte(s)
Moving plot.h and plot.c back to the base/generic/compiler.
This is so that I can use those routines in PyGTK plotting.
1 # ASCEND Interface Makefile
2 # Kirk Abbott. Ben Allan
3 # November 24, 1993
4
5 SHELL = /bin/sh
6 #AWW20041206: builddir = ..
7 builddir = ..
8 srcdir = @fullpathsrcdir@/../../tcltk98/generic/interface
9 VPATH := @fullpathsrcdir@/../../tcltk98/generic/interface
10
11
12
13 # The next variables are the primary executables and/or libraries that
14 # this makefile is responsible for, and the default target of this
15 # makefile.
16
17 EXECUTABLE = $(builddir)/bin/ascend4
18
19 PURIFIED_EXEC = $(builddir)/bin/ascend4p
20
21 QUANTIFIED_EXEC = $(builddir)/bin/ascend4q
22
23 LIBRARY = libascif.a
24
25
26 default: $(LIBRARY) $(EXECUTABLE)
27
28
29
30 # Defines and Includes that are specific to this directory
31
32 DIR_SPECIFIC_DEFS = $(SOLVER_DEFS)
33 DIR_SPECIFIC_INCS = $(TK_INCS) $(X11_INCS)
34
35
36
37
38 # The next variables list the source files (EXEC_SCRS) to compile
39 # into the object files (EXEC_OBJS) that are linked with the
40 # library files (EXEC_LIBS) to make EXECUTABLE
41
42 EXEC_SRCS = Driver.c
43
44 EXEC_OBJS = Driver.o
45
46 EXEC_LIBS = $(ASC_LIBS) $(FOR_LIBS) $(TK_LIBS) $(TKTABLE_LIB) $(X11_LIBS) \
47 $(MATH_LIBS) $(DEBUG_LIBS)
48
49
50
51 # The next variables list the source files (LIB_SCRS) to compile
52 # into the object files (LIB_OBJS) that are combined to make LIBRARY
53
54 LIB_OBJS = \
55 AscBitmaps.o AscPrintTcl.o BrowLogRel_io.o BrowWhen_io.o \
56 BrowserMethod.o BrowserProc.o BrowserQuery.o BrowserRel_io.o \
57 Commands.o DebugProc.o DisplayProc.o \
58 EnvVarProc.o HelpProc.o Integrators.o \
59 LibraryProc.o Lsode.o MtxProc.o ProbeProc.o Qlfdid.o \
60 ScriptProc.o Sensitivity.o SimsProc.o SlvProc.o \
61 SolverProc.o UnitsProc.o UserData.o \
62 tkConsole.o typelex.o old_utils.o
63
64 LIB_SRCS = $(LIB_OBJS:%.o=%.c)
65
66
67 # The global makefile macros (ConfigAscend) and global rules (Makefile.Rules)
68 #
69 #AWW $builddir is currently pointing to: base/generic
70 #
71 include $(builddir)/ConfigAscend
72 include $(builddir)/Makefile.Rules
73
74
75
76 # Some aliases for targets
77
78 ascend4 GUI: $(EXECUTABLE)
79
80 ascend4p: $(PURIFIED_EXEC)
81
82 ascend4q: $(QUANTIFIED_EXEC)
83
84
85
86 # File specific rules
87
88 DriverNoTickle.o: Driver.date
89 $(CC) $(CC_SWITCHES) $(HAVE_TKTABLE) $(TIMESTAMP) -c $(srcdir)/DriverNoTickle.c
90 $(RM) Driver.date
91
92
93 # Force an update of Driver.o so we update the value
94 # of TIMESTAMP in the ascend binary
95 # -- disabled -- Dec 1 2005 -- johnpye
96 #Driver.o: Driver.date
97 # $(CC) $(CC_SWITCHES) $(HAVE_TKTABLE) $(TIMESTAMP) -c $(srcdir)/Driver.c
98 # $(RM) Driver.date
99 #
100 #Driver.date: $(srcdir)/Driver.c
101 # $(ECHO) 'A file to force a timestamp update' > Driver.date
102
103
104
105 # The C file for the typer (typelex.c) can either be generated by flex,
106 # or it can come from a pregenerated C file. The configure script will
107 # set the $(MAKE) line under the ``typelex'' target to maker either
108 # typelex.c.from.flex ---to generate the typer using flex
109 # typelex.c.from.c ---to use the pregenerated C file
110 # depending on the value of $(LEX).
111
112 typelex.o: $(srcdir)/typelex.l $(srcdir)/typelex.c.no.flex
113 $(MAKE) @typer_src@
114 $(CC) $(CC_SWITCHES) -DYY_USE_CONST -c typelex.c
115
116 typelex.c.from.flex: $(srcdir)/typelex.l
117 $(LEX) -Ptyp_ -t $(srcdir)/typelex.l > typelex.c
118
119 typelex.c.from.c: $(srcdir)/typelex.c.no.flex
120 $(CP) $(srcdir)/typelex.c.no.flex typelex.c
121
122 typelex.c: $(srcdir)/typelex.l $(srcdir)/typelex.c.no.flex
123 $(MAKE) @typer_src@
124
125
126
127 # Files to install
128
129 install-binaries::
130 @if test ! -d $(BIN_DIR) ; then \
131 echo Making directory $(BIN_DIR) ; \
132 mkdir -p $(BIN_DIR) ; \
133 fi
134 @if $(CMP) -s $(EXECUTABLE) $(BIN_DIR)/$(EXECUTABLE) ; then \
135 echo "Skipping $(EXECUTABLE) (up to date)" ; \
136 else \
137 echo "Installing $(EXECUTABLE) --> $(BIN_DIR)" ; \
138 $(INSTALL_PROGRAM) $(EXECUTABLE) $(BIN_DIR) ; \
139 fi
140
141
142
143 # Files, in addition to the default, to remove when we `make clean'
144
145 clean::
146 -$(RM) typelex.c
147 #-$(RM) Driver.date
148
149
150
151 # DO NOT DELETE THIS LINE -- g++dep uses it.
152 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
153
154
155 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22