Debian Codegraph @

wmake/ALPHA_5_DEF

raw
1 #################################################################
2 ############### acedb: R.Durbin and J.Thierry-Mieg ##############
3 ########### wmake/DEC_ALPHA_DEF March-18-1993 ##########
4 #################################################################
5 #
6 # $Id: ALPHA_5_GTK2_DEF,v 1.1 2004/01/21 13:55:39 edgrif Exp $
7 #
8 #################################################################
9 ########## Machine dependant compiler modification ##############
10 ####### for the DEC-Alpha 3000 model 500 running Unix ###########
11 #################################################################
12 ########### This file is included by wmake/truemake #############
13 ###### Edit this file to adapt the ACeDB to a new machine ######
14 ##### following the explanations given in wmake/truemake #####
15 #################################################################
16
17
18 # Use this file to compile standard acedb code for OSF 5 and GTK 2
19
20
21
22 # N.B. this file is used both for building executables that
23 # dynamically link in the readline/gtk libraries from /usr/local/lib
24 # and for executables that have our local copies of readline/gtk
25 # statically linked in. This has involved a bit of frigging around
26 # with linker options that is unpleasant to say the least...
27 # If you change this file you should be aware that you may be in
28 # for a BAD time...
29
30
31 NAME = ALPHA
32
33 # Compiler used to build 3rd party libraries
34 LIBCC = cc
35
36 # Note that I have done this so you don't have to set any special environment variables to
37 # build and run the executables.
38 #
39 # Set up gtk version stuff, params are:
40 #
41 # [-local libs_path] glib_version gtk_version
42 #
43 # libs_path is so you can specify a non-standard place for pkg-config/gtk etc.
44 #
45 LOCALDIR = -local /usr/local/gtk2
46 GTKVER = glib-2.0 gtk+-2.0
47
48 GTKINC = `../w3rdparty/include-config $(LOCALDIR) $(GTKVER)`
49 GTKXWIN = `../w3rdparty/acedb-config $(LOCALDIR) $(GTKVER)`
50 GTKLIB = `../w3rdparty/libs-config $(LOCALDIR) $(GTKVER)`
51 GTKLIBDIR = `../w3rdparty/libs-config $(LOCALDIR) -libonly $(GTKVER)`
52
53 XWIN_LIBS = $(GTKXWIN) -lXext -lX11
54
55
56 # I'm trying "level3" messages, you can go to "level6" but this is quite annoying....
57 #
58 COMPILER = cc -g -c99 -msg_enable level3 -ieee_with_inexact -DACEDB4 $(GTKINC) -I/usr/local/include
59
60
61 # On DEC by default the linker will first search all the library
62 # directories for a dynamic version of the library and only if it
63 # can't be found will it then look for a static version. What we
64 # actually want is for the linker to search each directory in turn for
65 # either a dynamic or a static version of the library
66 #LINKER = cc -g1 -oldstyle_liblookup
67 LINKER = cc -g -oldstyle_liblookup
68
69 # On DEC binaries complied with gcc + ev6 specific options crawl on pre
70 # ev6 machines. Add opion to emulate ev5, specifying the ev6 options only
71 # gains about 10% anyway. This is probably only used for the Image
72 # external modules since the default compiler/linker for DEC is cc
73 CCCFLAGS = -O2 -g3 -Wall -mcpu=ev5
74
75 # On DEC the library does not need to be ranlib'd
76 RANLIB_NEEDED = false
77
78 # /usr/local/lib: needed for GNU software, e.g. readline package, libs-config
79 # detects whether it should be taken from our local copy or from system
80 # /usr/local/lib
81 # -no_archive + -so_archive: unfortunately the -oldstyle_liblookup from
82 # above causes us to find a libcurses.a in /usr/local/lib which is no good
83 # for our dynamic link of gtk/readline, so we need to turn off archive use
84 # and then turn it on again.
85 #
86 LIBS = -rpath $(GTKLIBDIR) $(GTKLIB) -L/usr/local/lib -lreadline -no_archive -lcurses -so_archive
87
88
89
90 .c.o:
91 $(CC) $*.c
92
93 #################################################################
94 #################################################################
95
96