NCBI C Toolkit Cross Reference

C/cn3d/makecn3d


  1 ########################################################################
  2 #       Generic command-line makefile for NCBI applications
  3 #
  4 #   This assumes the following variables are set in a file called "ncbi.mk"
  5 #     which is included by this one. In this case it resides in a directory
  6 #     set by the environment variable "NCBI"
  7 #
  8 #    NCBI_CC = default compiler to use
  9 #    NCBI_CFLAGS1 = default compiler switches (not optimization)
 10 #    NCBI_LDFLAGS1 = default compiler switches when linking (not optimization)
 11 #    NCBI_OPTFLAG = default optimization (-O)
 12 #    NCBI_INCDIR = default toolkit include paths
 13 #    NCBI_LIBDIR = default toolkit library paths
 14 #    NCBI_ALTLIB  = debugging toolkit library paths
 15 #    NCBI_VIBFLAG = additional include paths/defines for Vibrant apps
 16 #    NCBI_VIBLIBS  = additional libraries needed to link Vibrant apps
 17 #    NCBI_OTHERLIBS = additional libraries needed to link the system
 18 #
 19 #   This enables platform independent makefiles for ncbi toolkit apps. You
 20 #   can change any default behavior by setting the variable on the command
 21 #   line.
 22 #
 23 #   Use gcc complier.   "make NCBI_CC=gcc" or "make CC=gcc"
 24 #   Change optimization to debug
 25 #                "make NCBI_OPTFLAG="-g" NCBI_LIBPATH=$NCBI_ALTLIB"
 26 #                or
 27 #                "make OPTFLAG="-g" LIBPATH=$NCBI_ALTLIB"
 28 #
 29 #   You can also change the behavior permanently in the makefile by changing
 30 #    the assignment of the internal variable to the one from the include
 31 #    file:
 32 #
 33 #   Use gcc compiler.
 34 #    Change   CC=$(NCBI_CC)
 35 #    To       CC=gcc
 36 #    in the makefile itself
 37 #
 38 #   Make debugging version
 39 #    OPTFLAG=-g
 40 #    LIBPATH=$(NCBI_ALTLIB)
 41 #
 42 #   You need to specify the EXE and SRC symbols
 43 #
 44 #######################################################################
 45 #
 46 # default flags for compiling and loading
 47 #
 48 #######################################################################
 49 
 50 include $(NCBI)/ncbi.mk
 51 
 52 CC = $(NCBI_CC)
 53 #CC = lint
 54 #CC = purify cc -xildoff
 55 CFLAGS1 = $(NCBI_CFLAGS1)
 56 LDFLAGS1 = $(NCBI_LDFLAGS1)
 57 OPTFLAG = -g -D DEBUG_DDV
 58 OTHERLIBS = $(NCBI_OTHERLIBS)
 59 VIBLIBS= $(NCBI_VIBLIBS)
 60 VIBFLAG= $(NCBI_VIBFLAG)
 61 INCPATH = $(NCBI_INCDIR)
 62 LIBPATH = $(NCBI_ALTLIB)
 63 # DEF = -DINTERNAL_NCBI_SEQUIN -DSALSA_DEBUG 
 64 SRC = algorend.o cn3dentr.o cn3dmain.o cn3dmatn.o cn3dmesh.o cn3dmodl.o \
 65 cn3dmsel.o cn3dmsg.o cn3dopen.o cn3dsave.o cn3dshim.o \
 66 cn3dwin.o cn3dxprt.o seqcons.o cn3dstyl.o
 67 EXE = Cn3D
 68 
 69 
 70 CFLAGS = $(CFLAGS1) $(OPTFLAG) -I. -I$(INCPATH) $(VIBFLAG) $(DEF)
 71 LDFLAGS = -I. -I$(INCPATH) $(OPTFLAG) -L../lib -L$(LIBPATH) $(VIBFLAG) $(DEF)
 72 
 73 # all NCBI libraries aliased for easy access here
 74 
 75 LIB1 = -lncbi
 76 LIB2 = -lncbiobj
 77 LIB3 = -lncbicdr
 78 LIB4 = -lvibrant
 79 LIB5 = -lncbiacc
 80 LIB6 = -lnetcli
 81 LIB7 = -lnetentr
 82 LIB8 = -lncbiNacc
 83 LIB9 = -lncbiCacc
 84 # LIB10 is reserved for NCSA socket library
 85 #LIB10 =
 86 LIB11 = -lncbimla
 87 LIB12 = -lncbitax1
 88 LIB13 = -lncbiid0
 89 LIB18 = -lncbibls2
 90 LIB19 = -lncbispel
 91 LIB20 = -lncbidesk
 92 LIB21 = -lncbibls2
 93 LIB22 = -lncbimmdb
 94 LIB23 = -lncbitool
 95 LIB29 = -lncbitxc1
 96 LIB31 = -lvibnet
 97 LIB33 = -lsmartnet
 98 LIB36 = -lncbitree
 99 LIB41 = -lncbiid1
100 
101 ## To clean out the directory without removing make
102 ##
103 
104 ## Implicit actions
105 ##
106 ## if need a .o, compile the .c
107 ##
108 
109 .KEEP_STATE:
110 
111 .c.o :
112         $(CC) $(CFLAGS) $<
113 
114 #####################################################################
115 ##
116 ## Here is where you set up your own things to make
117 ##
118 #####################################################################
119 
120 ## Default thing to make will be "all"
121 ##
122 
123 all : $(EXE)
124 
125 ## make individual applications and components
126 ##
127 
128 $(EXE) : $(SRC)
129         $(CC) -o $(EXE) $(LDFLAGS) $(SRC)  $(LIB31) $(LIB20) $(LIB41) -lnetblast $(LIB22) \
130         $(LIB8) $(LIB7) $(LIB6) $(LIB3) $(LIB4) $(LIB23) $(LIB2) $(LIB1) \
131         $(NCBI_VIBLIBS) $(LIB36) $(NCBI_OTHERLIBS)
132 

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.