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

Annotation of /trunk/tcltk/generic/interface/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


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

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