41 lines
1.0 KiB
Makefile
41 lines
1.0 KiB
Makefile
# -*- makefile -*- Time-stamp: <07/03/08 21:35:57 ptr>
|
|
#
|
|
# Copyright (c) 1997-1999, 2002, 2003, 2005-2007
|
|
# Petr Ovtchenkov
|
|
#
|
|
# Portion Copyright (c) 1999-2001
|
|
# Parallel Graphics Ltd.
|
|
#
|
|
# Licensed under the Academic Free License version 3.0
|
|
#
|
|
|
|
# Oh, the commented below work for gmake 3.78.1 and above,
|
|
# but phrase without tag not work for it. Since gmake 3.79
|
|
# tag with assignment fail, but work assignment for all tags
|
|
# (really that more correct).
|
|
|
|
LDLIBS ?=
|
|
LDSEARCH += /LIBPATH:"$(MSVC_LIB_DIR)"
|
|
|
|
dbg-shared: OPT += /MDd
|
|
stldbg-shared: OPT += /MDd
|
|
release-shared: OPT += /MD
|
|
release-shared-dep: OPT += /MD
|
|
dbg-static: OPT += /MTd
|
|
stldbg-static: OPT += /MTd
|
|
release-static: OPT += /MT
|
|
|
|
release-static: DEFS += /D_LIB
|
|
dbg-static: DEFS += /D_LIB
|
|
stldbg-static: DEFS += /D_LIB
|
|
|
|
|
|
dbg-shared: LDFLAGS += /DLL ${LDSEARCH}
|
|
stldbg-shared: LDFLAGS += /DLL ${LDSEARCH}
|
|
release-shared: LDFLAGS += /DLL ${LDSEARCH}
|
|
dbg-static: LDFLAGS += ${LDSEARCH}
|
|
stldbg-static: LDFLAGS += ${LDSEARCH}
|
|
release-static: LDFLAGS += ${LDSEARCH}
|
|
|
|
LDFLAGS += /VERSION:$(MAJOR).$(MINOR)
|