File: make.mmdbsrv

package info (click to toggle)
ncbi-tools6 6.1.20120620-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 241,628 kB
  • ctags: 101,236
  • sloc: ansic: 1,431,713; cpp: 6,248; pascal: 3,949; xml: 3,390; sh: 3,090; perl: 1,077; csh: 488; makefile: 449; ruby: 93; lisp: 81
file content (72 lines) | stat: -rw-r--r-- 1,949 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#######################################################################
#
# This makefile is now used to make both the flat file (suffix "FF")
# and pubstruct (suffix "PS") production versions of mmdbsrv. The
# previous version (6.24) was used only for building the pubstruct version.
#
# Historical comments that are no longer relevant have been removed.
#
#######################################################################
#
# $Log: make.mmdbsrv,v $
# Revision 6.27  2000/06/23 22:35:56  lewisg
# get rid of hardcoded urls
#
# Revision 6.26  1999/06/11 19:56:29  zimmerma
# new makefiles
#
# 
#######################################################################

# Define sybase libs before ncbi.mk to allow them to be overridden:
NCBI_SYBLIBS_CT = -L$(NCBI_SYBASE)/lib -lblk -lct -lcs -ltcl -lcomn -lintl

include $(NCBI)/ncbi.mk
CC = $(NCBI_CC)
CFLAGS1 = -c
OTHERLIBS = -lm
INCPATH = $(NCBI_INCDIR)

#development mode
#OPTFLAG = -g
#LIBPATH = $(NCBI_ALTLIB)

#production mode
OPTFLAG = $(NCBI_OPTFLAG)
# LIBPATH = ../lib
LIBPATH = $(NCBI_LIBDIR)

# SYMBOLS FOR flat file source, executables.

SRC_FF = mmdbsrv.c mmdbFF.c
SRC_PS = mmdbsrv.c mmdb_pubstruct.c PubStructAsn.c

CFLAGS = $(CFLAGS1) $(OPTFLAG) -I$(INCPATH) 
LDFLAGS = -I$(INCPATH) $(OPTFLAG) -L../lib -L$(LIBPATH)

# The current list of NCBI libraries copied from makenet.unx

LIB1 = -lncbi
LIB2 = -lncbiobj
LIB3 = -lncbicdr
LIB6 = -lnetcli
LIB7 = -lnetentr
LIB8 = -lncbiNacc
LIB22 = -lncbimmdb

# Implicit actions

# if need a .o, compile the .c
.c.o :
	$(CC) $(CFLAGS) $<

## make individual applications and components
##$

mmdbsrv.FF : $(SRC_FF)
	$(CC) -o $@ -I./ $(LDFLAGS) $(SRC_FF) \
        $(LIB22) $(LIB8) $(LIB7) $(LIB6) $(LIB3) $(LIB2) $(LIB1) $(NCBI_OTHERLIBS) 

mmdbsrv.PS : $(SRC_PS)
	$(CC) -o $@ -I./ $(LDFLAGS) $(NCBI_SYBFLAG) $(SRC_PS) -lnlmzip -lctutils $(NCBI_SYBLIBS_CT) \
        $(LIB22) $(LIB8) $(LIB7) $(LIB6) $(LIB3) $(LIB2) $(LIB1) $(NCBI_OTHERLIBS)