~ubuntu-branches/ubuntu/hardy/ncbi-tools6/hardy

« back to all changes in this revision

Viewing changes to make/make_lib.dos

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2005-09-27 15:38:20 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050927153820-1t1sta0qirjpxaar
Tags: 6.1.20050429-1ubuntu1
GL/GLU Transition

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: make_lib.dos,v 6.10 2002/02/11 20:47:16 lavr Exp $
2
 
########################################################################
3
 
#  This file describes rules to build NCBI-toolkit-based library.
4
 
#  Below is an example of using this file(along with another template
5
 
#  "make_gen.dos").
6
 
#
7
 
########################################################################
8
 
#NCBI_DLL = 1 -- use this if the target library can be built as a DLL
9
 
#!include "$(LIBPATH)\make_gen.dos"
10
 
#LIB_NAME = ncbiobj
11
 
#LIB_LIB  = $(LIB1)
12
 
#LIB_OBJ  = $(OBJ2)
13
 
#LIB_PREOPT  =
14
 
#LIB_OPT  =
15
 
#LIB_STDLIB  =
16
 
#RES =
17
 
#RES_DEP =
18
 
#!include "$(LIBPATH)\make_lib.dos"
19
 
########################################################################
20
 
# For more detail explanations see in the file "make/_howto_.dos"
21
 
########################################################################
22
 
 
23
 
# remove '+' before the object module filenames(for non-Borland tools)
24
 
LIB_OBJ1 = $(LIB_OBJ:+=)
25
 
 
26
 
#############################################################################
27
 
# Compose default input/output file names
28
 
!ifdef NCBI_DLL
29
 
LIBRARY = $(LIB_NAME).dll
30
 
!else
31
 
LIBRARY = $(LIB_NAME).lib
32
 
!endif
33
 
 
34
 
 
35
 
########################################################################
36
 
XCFLAGS = $(LIB_PREOPT) $(CFLAGS) $(LIB_OPT)
37
 
 
38
 
.c.obj:
39
 
        $(CC) $(XCFLAGS) $*.c
40
 
 
41
 
.cxx.obj:
42
 
        $(CC) $(XCFLAGS) $*.cxx
43
 
 
44
 
!ifdef NCBI_DLL
45
 
!ifdef RES
46
 
LIB_RC  = $(LIB_NAME).rc
47
 
LIB_RES = $(LIB_NAME).res
48
 
$(LIB_RES): $(TEST_RC) $(RES_DEP)
49
 
        $(RC) -r -I$(INCPATH) -I$(LIBPATH) $(LIB_RC)
50
 
!endif
51
 
!endif
52
 
 
53
 
 
54
 
#####  special rules to build some of the NCBI toolkit object files
55
 
ncbithrs.c:  ncbithr.c
56
 
        copy ncbithr.c ncbithrs.c
57
 
ncbithrs.obj:  ncbithrs.c
58
 
        $(CC) @<<
59
 
-DNCBI_NOTHREADS_AVAIL $(XCFLAGS) $*.c
60
 
<<
61
 
###
62
 
regex.obj:  regex.c
63
 
        $(CC) @<<
64
 
-DREGEX_NCBI -DREGEX_MALLOC $(XCFLAGS) $*.c
65
 
<<
66
 
###
67
 
ncbidrwg.c:  ncbidraw.c
68
 
        copy ncbidraw.c ncbidrwg.c
69
 
###
70
 
naccentr.c:  accentr.c
71
 
        copy accentr.c naccentr.c
72
 
naccentr.obj: naccentr.c
73
 
        $(CC) @<<
74
 
$(XCFLAGS) -D_NETENT_ $*.c
75
 
<<
76
 
###
77
 
caccentr.c:  accentr.c
78
 
        copy accentr.c caccentr.c
79
 
caccentr.obj: caccentr.c
80
 
        $(CC) @<<
81
 
$(XCFLAGS) -D_NET_AND_CD_ $*.c
82
 
<<
83
 
###
84
 
objmla.obj: objmla.c
85
 
        $(CC) @<<
86
 
$(XCFLAGS) -DNLM_OBJ_INCL="mampla.h" $*.c
87
 
<<
88
 
###
89
 
txcdproc.obj: txcdproc.c
90
 
        $(CC) @<<
91
 
$(XCFLAGS) -DTAXSERVICE $*.c
92
 
<<
93
 
 
94
 
tc2proc.obj: tc2proc.c
95
 
        $(CC) @<<
96
 
$(XCFLAGS) -DTAXSERVICE $*.c
97
 
<<
98
 
 
99
 
 
100
 
########################################################################
101
 
 
102
 
 
103
 
copy:   $(LIBRARY)
104
 
nocopy: $(LIBRARY)
105
 
 
106
 
!ifdef NCBI_DLL
107
 
XLIB_LIB = $(LIB_LIB)
108
 
!endif
109
 
 
110
 
$(LIBRARY) : $(LIB_OBJ1) $(LIB_RES) $(XLIB_LIB)
111
 
        $(DEL) $@
112
 
!ifdef BOR
113
 
        tlib $@ $(LIBFLAGS) @<<
114
 
$(LIB_OBJ)
115
 
<<
116
 
!else
117
 
!ifdef NCBI_DLL
118
 
        link /DLL /NODEFAULTLIB:LIBC $(DBUG_FLG) /OUT:$@ /MAP:$*.map /IMPLIB:$*.lib $(LIB_OBJ1) $(LIB_RES) $(XLIB_LIB) $(LIB_STDLIB) $(STDLIB)
119
 
!else
120
 
        lib /OUT:$@ $(LIB_OBJ1)
121
 
!endif
122
 
!endif