Applied Norman Vine's changes for Cygwin/Mingw

This commit is contained in:
Don BURNS 2004-03-25 18:34:40 +00:00
parent ec1fd733b8
commit 29cee0c15f
2 changed files with 24 additions and 13 deletions

View File

@ -77,6 +77,8 @@ OBJS = $(C++FILES:.cpp=.o) \
$(CXXFILES:.cpp=.o) \
$(CFILES:.c=.o) \
EXE_EXT =
DOF = $(OPTF)
DEBUGDIR = $(OS)$(ARCH).Debug
OPTDIR = $(OS)$(ARCH).Opt
@ -430,7 +432,7 @@ ifeq ($(OS),Darwin)
endif
#### Cygwin/Mingw specific definitions
#### Cygwin specific definitions
ifeq ($(OS),CYGWIN)
C++ = c++
DEPARG = -M
@ -439,9 +441,10 @@ ifeq ($(OS),CYGWIN)
OPTF = -O2
DBGF = -g -DOSG_COMPILE_UNIT_TESTS
SHARED = -shared\
-Wl,--export-all-symbols \
-Wl,--output-def,lib$(TARGET_BASENAME).def \
-Wl,--out-implib,$(TOPDIR)/lib/lib$(TARGET_BASENAME).dll.a
-Wl,--out-implib,$(TOPDIR)/lib/$(OS)/lib$(TARGET_BASENAME).dll.a
-Wl,--export-all-symbols
EXE_EXT =.exe
ARCH =
ARCHINST =
ARCHARGS =
@ -458,6 +461,10 @@ ifeq ($(OS),CYGWIN)
GIF_LIBS = -lungif
TIFF_LIB = -ltiff -lz -ljpeg
FREETYPE_LIB = -lfreetype
LIBINST = bin
PLUGININST = bin/$(OS)$(ARCH)
LIB_PREFIX = cyg
LIB_EXT = dll
PLUGIN_EXT = dll
@ -475,7 +482,7 @@ ifeq ($(OS),CYGWIN)
MAKEDIST = $(TOPDIR)/Make/makeinnosetup
endif
#### Cygwin/Mingw specific definitions
#### Mingw specific definitions
ifeq ($(OS),MINGW)
C++ = c++ -mthreads
DEPARG = -M
@ -485,9 +492,10 @@ ifeq ($(OS),MINGW)
OPTF = -O2
DBGF = -g -DOSG_COMPILE_UNIT_TESTS
SHARED = -shared -mthreads \
-Wl,--export-all-symbols \
-Wl,--output-def,lib$(TARGET_BASENAME).def \
-Wl,--out-implib,$(TOPDIR)/lib/lib$(TARGET_BASENAME).dll.a
-Wl,--out-implib,$(TOPDIR)/lib/$(OS)/lib$(TARGET_BASENAME).dll.a \
-Wl,--export-all-symbols
EXE_EXT =.exe
ARCH =
ARCHINST =
ARCHARGS =
@ -507,6 +515,9 @@ ifeq ($(OS),MINGW)
LIBXML2_INCLUDE = -I/usr/mingw/include/libxml2
LIBINST = bin
PLUGININST = bin/$(OS)$(ARCH)
LIB_PREFIX = lib
LIB_EXT = dll
PLUGIN_EXT = dll

View File

@ -89,7 +89,7 @@ $(EXEC:=.dbg) :
$(MAKE) -f ../GNUmakefile "DOF=$(DBGF)" TOPDIR=../${TOPDIR} \
THISDIR=../$(THISDIR)\
MAKEDEPEND=Makedepend $(EXEC)
@$(MAKE) LNSRC=$(DEBUGDIR)/$(EXEC) LNDEST=$(BININST)/$(OS)$(ARCH)/$(EXEC) __link
@$(MAKE) LNSRC=$(DEBUGDIR)/$(EXEC)$(EXE_EXT) LNDEST=$(BININST)/$(OS)$(ARCH)/$(EXEC)$(EXE_EXT) __link
$(LIB:=.dbg) : $(PLUGIN:=.dbg)
@[ -d $(DEBUGDIR) ] || mkdir $(DEBUGDIR)
@ -113,7 +113,7 @@ $(EXEC:=.opt) :
$(MAKE) -f ../GNUmakefile DOF=$(OPTF) TOPDIR=../${TOPDIR} \
THISDIR=../$(THISDIR)\
MAKEDEPEND=Makedepend $(EXEC)
@$(MAKE) LNSRC=$(OPTDIR)/$(EXEC) LNDEST=$(BININST)/$(OS)$(ARCH)/$(EXEC) __link
@$(MAKE) LNSRC=$(OPTDIR)/$(EXEC)$(EXE_EXT) LNDEST=$(BININST)/$(OS)$(ARCH)/$(EXEC)$(EXE_EXT) __link
$(LIB:=.opt) :