source: trunk/gsdl/packages/d2m/win32.mak@ 11256

Last change on this file since 11256 was 11256, checked in by mdewsnip, 18 years ago

Added a "GSDL_VC4" option that has to be specified with the nmake command when using Visual C++ 4. This is used to determine whether "-GX" (Visual C++ 4) or "-EHsc" (Visual C++ 6/Visual Studio 2005) is specified as a command-line option to the compiler.

  • Property svn:keywords set to Author Date Id Revision
File size: 813 bytes
Line 
1# ///////////////// d2m : Dublin Core to MARC converter /////////////////////
2#
3#
4# Generated for Greenstone kjdon May 2005.
5# Used by z3950server
6
7GSDLHOME = ..\..
8GSDL_VC4 = 0
9CC = cl
10AR = lib
11
12DLL = 0
13DLLDEBUG = 0
14
15!IF $(GSDL_VC4)
16CPPFLAGS = -GX
17!ELSE
18CPPFLAGS = -EHsc
19!ENDIF
20
21!IF $(DLL)
22CPPFLAGS = $(CPPFLAGS) -MD
23!ELSE
24!IF ($(DLLDEBUG))
25CPPFLAGS = $(CPPFLAGS) -MDd
26!ENDIF
27!ENDIF
28
29o = .obj
30
31DEFS=-DHAVE_CONFIG_H -D__WIN32__ -D_CRT_SECURE_NO_DEPRECATE
32INCLUDES= -I"$(GSDLHOME)"
33COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
34
35LIB_OBJS = MARC2709$o MARCtidy$o usMARC$o util$o strcasecmp$o
36
37all: libd2m.lib
38
39libd2m.lib: $(LIB_OBJS)
40 if EXIST libd2m.lib del libd2m.lib
41 $(AR) -nologo /out:libd2m.lib $(LIB_OBJS)
42
43install:
44
45clean:
46 del *$o
47 del libd2m.lib
48
49distclean: clean
50 rm -f Makefile config.h
51
Note: See TracBrowser for help on using the repository browser.