# ///////////////// d2m : Dublin Core to MARC converter /////////////////////
#
#
# Generated for Greenstone kjdon May 2005.
# Used by z3950server

GSDLHOME = ..\..\..
GSDL_VC4 = 0
CC = cl
AR = lib

DEBUG = 0
DLL = 0
DLLDEBUG = 0

!IF $(DEBUG)
CXXFLAGS = -DEBUG -Z7 /errorReport:prompt
!ELSE
CXXFLAGS =
!ENDIF

!IF $(GSDL_VC4)
CXXFLAGS = $(CXXFLAGS) -GX
!ELSE
CXXFLAGS = $(CXXFLAGS) -EHsc
!ENDIF

!IF $(DLL)
CXXFLAGS = $(CXXFLAGS) -MD 
!ELSE
!IF ($(DLLDEBUG))
CXXFLAGS = $(CXXFLAGS) -MDd
!ENDIF
!ENDIF

o = .obj

DEFS=-DHAVE_CONFIG_H -D__WIN32__ -D_CRT_SECURE_NO_DEPRECATE
INCLUDES= -I"$(GSDLHOME)"
COMPILE = $(CC) -nologo -c $(CXXFLAGS) $(DEFS) $(INCLUDES)

LIB_OBJS = MARC2709$o MARCtidy$o usMARC$o util$o strcasecmp$o

all: libd2m.lib

libd2m.lib: $(LIB_OBJS)
	if EXIST libd2m.lib del libd2m.lib
	$(AR) -nologo /out:libd2m.lib $(LIB_OBJS)

install:

clean:
	del *$o 
	del libd2m.lib

distclean: clean
	rm -f Makefile config.h

