| 1 |
# $Id: ALPHA_4_DEF,v 1.15 2003/11/13 14:46:25 srk Exp $ |
| 2 |
|
| 3 |
################################################################# |
| 4 |
############### acedb: R.Durbin and J.Thierry-Mieg ############## |
| 5 |
########### wmake/DEC_ALPHA_DEF March-18-1993 ########## |
| 6 |
################################################################# |
| 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 |
# N.B. this file is used both for building executables that |
| 18 |
# dynamically link in the readline/gtk libraries from /usr/local/lib |
| 19 |
# and for executables that have our local copies of readline/gtk |
| 20 |
# statically linked in. This has involved a bit of frigging around |
| 21 |
# with linker options that is unpleasant to say the least... |
| 22 |
# If you change this file you should be aware that you may be in |
| 23 |
# for a BAD time... |
| 24 |
|
| 25 |
|
| 26 |
NAME = ALPHA |
| 27 |
|
| 28 |
# Compiler used to build 3rd party libraries |
| 29 |
LIBCC = cc |
| 30 |
|
| 31 |
# Pick the version of GTK to use. |
| 32 |
GTKVER = |
| 33 |
|
| 34 |
# Options used to link the test programs which are part of the |
| 35 |
# configuration of the 3rd party libraries (see XWIN_LIBS below) |
| 36 |
#LIBLDFLAGS = |
| 37 |
|
| 38 |
COMPILER = cc -g -std1 -ieee_with_inexact -DACEDB4 `../w3rdparty/include-config $(GTKVER) -I/usr/local/include` |
| 39 |
|
| 40 |
# On DEC by default the linker will first search all the library |
| 41 |
# directories for a dynamic version of the library and only if it |
| 42 |
# can't be found will it then look for a static version. What we |
| 43 |
# actually want is for the linker to search each directory in turn for |
| 44 |
# either a dynamic or a static version of the library |
| 45 |
LINKER = cc -g -oldstyle_liblookup |
| 46 |
|
| 47 |
|
| 48 |
XWIN_LIBS = `../w3rdparty/acedb-config $(GTKVER)` |
| 49 |
|
| 50 |
# On DEC binaries complied with gcc + ev6 specific options crawl on pre |
| 51 |
# ev6 machines. Add opion to emulate ev5, specifying the ev6 options only |
| 52 |
# gains about 10% anyway. This is probably only used for the Image |
| 53 |
# external modules since the default compiler/linker for DEC is cc |
| 54 |
CCCFLAGS = -O2 -g3 -Wall -mcpu=ev5 |
| 55 |
|
| 56 |
# On DEC the library does not need to be ranlib'd |
| 57 |
RANLIB_NEEDED = false |
| 58 |
|
| 59 |
# /usr/local/lib: needed for GNU software, e.g. readline package, libs-config |
| 60 |
# detects whether it should be taken from our local copy or from system |
| 61 |
# /usr/local/lib |
| 62 |
# -no_archive + -so_archive: unfortunately the -oldstyle_liblookup from |
| 63 |
# above causes us to find a libcurses.a in /usr/local/lib which is no good |
| 64 |
# for our dynamic link of gtk/readline, so we need to turn off archive use |
| 65 |
# and then turn it on again. |
| 66 |
# |
| 67 |
LIBS = `../w3rdparty/libs-config $(GTKVER) -L/usr/local/lib` -lreadline -lm -no_archive -lcurses -so_archive |
| 68 |
|
| 69 |
.c.o: |
| 70 |
$(CC) $*.c |
| 71 |
|
| 72 |
################################################################# |
| 73 |
################################################################# |
| 74 |
|
| 75 |
|