/[ascend]/trunk/base/generic/lib/Makefile.bt
ViewVC logotype

Contents of /trunk/base/generic/lib/Makefile.bt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (show annotations) (download)
Thu Dec 9 16:25:02 2004 UTC (20 years, 4 months ago) by aw0a
File size: 1284 byte(s)
adding lib directory less Makefile
1 # Makefile for ASCEND bin-tokens
2 #
3 # This makefile is generated by ASCENDs make install
4 # It is used by the ASCEND compiler to build a shared
5 # object that is loaded into ASCEND
6
7 # default C compiler.
8 CC = cc
9
10 # unix, at least
11 CP = cp
12
13 # caller is assumed to pass to make on the command line
14 #-RM=/bin/rm (or some equivalent file deletion command)
15 #-BTINCLUDES=(the absolute path of this directory)
16
17 # Flags to pass to the C compiler when compiling
18 # the components of a shared library
19 SHLIB_CFLAGS = -fPIC
20
21 # Base command to use to combine object files into
22 # a shared library
23 SHLIB_LD = cc -shared
24
25 # Dependent libraries for the linker to scan when
26 # creating a shared library
27 SHLIB_LD_LIBS =
28
29 # Suffix to use for the names of dynamically
30 # loadable objects
31 SHLIB_SUFFIX = .so
32
33 ###START_COPY_ME
34
35 # Flags for building routine and simple generated C code.
36 # Generally, -O > -O2 is a bad idea because it messes with
37 # IEEE 754 standards and we may not get the expected trap
38 # behavior.
39 BTCFLAGS = -O -c
40
41 $(BTTARGET) _dummy_target: $(BTTARGET).c
42 -$(RM) $(BTTARGET).o $(BTTARGET)$(SHLIB_SUFFIX)
43 $(CC) $(BTINCLUDES) $(SHLIB_CFLAGS) $(BTCFLAGS) \
44 $(BTTARGET).c -o $(BTTARGET).o
45 $(SHLIB_LD) $(SHLIB_LDFLAGS) \
46 -o $(BTTARGET)$(SHLIB_SUFFIX) $(BTTARGET).o
47
48 ###END_COPY_ME

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