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
7
########################################################################
8
#NCBI_DLL = 1 -- use this if the target library can be built as a DLL
9
#!include "$(LIBPATH)\make_gen.dos"
18
#!include "$(LIBPATH)\make_lib.dos"
19
########################################################################
20
# For more detail explanations see in the file "make/_howto_.dos"
21
########################################################################
23
# remove '+' before the object module filenames(for non-Borland tools)
24
LIB_OBJ1 = $(LIB_OBJ:+=)
26
#############################################################################
27
# Compose default input/output file names
29
LIBRARY = $(LIB_NAME).dll
31
LIBRARY = $(LIB_NAME).lib
35
########################################################################
36
XCFLAGS = $(LIB_PREOPT) $(CFLAGS) $(LIB_OPT)
42
$(CC) $(XCFLAGS) $*.cxx
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)
54
##### special rules to build some of the NCBI toolkit object files
56
copy ncbithr.c ncbithrs.c
57
ncbithrs.obj: ncbithrs.c
59
-DNCBI_NOTHREADS_AVAIL $(XCFLAGS) $*.c
64
-DREGEX_NCBI -DREGEX_MALLOC $(XCFLAGS) $*.c
67
ncbidrwg.c: ncbidraw.c
68
copy ncbidraw.c ncbidrwg.c
71
copy accentr.c naccentr.c
72
naccentr.obj: naccentr.c
74
$(XCFLAGS) -D_NETENT_ $*.c
78
copy accentr.c caccentr.c
79
caccentr.obj: caccentr.c
81
$(XCFLAGS) -D_NET_AND_CD_ $*.c
86
$(XCFLAGS) -DNLM_OBJ_INCL="mampla.h" $*.c
89
txcdproc.obj: txcdproc.c
91
$(XCFLAGS) -DTAXSERVICE $*.c
94
tc2proc.obj: tc2proc.c
96
$(XCFLAGS) -DTAXSERVICE $*.c
100
########################################################################
107
XLIB_LIB = $(LIB_LIB)
110
$(LIBRARY) : $(LIB_OBJ1) $(LIB_RES) $(XLIB_LIB)
113
tlib $@ $(LIBFLAGS) @<<
118
link /DLL /NODEFAULTLIB:LIBC $(DBUG_FLG) /OUT:$@ /MAP:$*.map /IMPLIB:$*.lib $(LIB_OBJ1) $(LIB_RES) $(XLIB_LIB) $(LIB_STDLIB) $(STDLIB)
120
lib /OUT:$@ $(LIB_OBJ1)