some minor Makefile tweaks; mainly for crosscompiling.

This commit is contained in:
Guenter Knauf
2009-04-09 03:13:51 +00:00
parent e63cbd907f
commit 2a39b32b1a
4 changed files with 26 additions and 25 deletions

View File

@@ -5,7 +5,7 @@
##
## Comments to: Guenter Knauf <eflash@gmx.net>
##
## $Id: Makefile.win32,v 1.10 2009/03/06 07:25:37 gknauf Exp $
## $Id: Makefile.win32,v 1.11 2009/04/09 03:13:52 gknauf Exp $
#
#########################################################################
@@ -18,7 +18,7 @@ WITH_ZLIB = 1
# Edit the path below to point to the base of your OpenSSL package.
ifndef OPENSSL_PATH
OPENSSL_PATH = ../../openssl-0.9.8j
OPENSSL_PATH = ../../openssl-0.9.8k
endif
# Edit the path below to point to your Distribution folder.
@@ -63,7 +63,7 @@ endif
ifdef METROWERKS
CC = mwcc
else
CC = $(CRPREFIX)gcc
CC = $(CROSSPREFIX)gcc
endif
CP = cp -afv
# RM = rm -f
@@ -91,13 +91,13 @@ CFLAGS += -nostdinc -gccinc -msgstyle gcc -inline off -opt nointrinsics -proc 58
CFLAGS += -ir "$(METROWERKS)/MSL" -ir "$(METROWERKS)/Win32-x86 Support"
CFLAGS += -w on,nounused,nounusedexpr # -ansi strict
else
LD = $(CRPREFIX)gcc
RC = $(CRPREFIX)windres
LD = $(CROSSPREFIX)gcc
RC = $(CROSSPREFIX)windres
LDFLAGS = -s -shared -Wl,--out-implib,$(TARGET)dll.a
AR = $(CRPREFIX)ar
AR = $(CROSSPREFIX)ar
ARFLAGS = -cq
LIBEXT = a
RANLIB = $(CRPREFIX)ranlib
RANLIB = $(CROSSPREFIX)ranlib
#LDLIBS += -lwsock32
LDLIBS += -lws2_32
RCFLAGS = -O coff -i

View File

@@ -5,7 +5,7 @@
##
## Comments to: Guenter Knauf <eflash@gmx.net>
##
## $Id: Makefile.win32,v 1.7 2009/03/06 07:25:49 gknauf Exp $
## $Id: Makefile.win32,v 1.8 2009/04/09 03:14:05 gknauf Exp $
#
#########################################################################
@@ -16,7 +16,7 @@ endif
# Edit the path below to point to the base of your OpenSSL package.
ifndef OPENSSL_PATH
OPENSSL_PATH = ../../../openssl-0.9.8j
OPENSSL_PATH = ../../../openssl-0.9.8k
endif
# Edit the var below to enable static linking of libssh2 and libz
@@ -51,7 +51,7 @@ endif
ifdef METROWERKS
CC = mwcc
else
CC = gcc
CC = $(CROSSPREFIX)gcc
endif
CP = cp -afv
# RM = rm -f
@@ -79,19 +79,20 @@ CFLAGS += -nostdinc -gccinc -msgstyle gcc -inline off -opt nointrinsics -proc 58
CFLAGS += -ir "$(METROWERKS)/MSL" -ir "$(METROWERKS)/Win32-x86 Support"
CFLAGS += -w on,nounused,nounusedexpr # -ansi strict
else
LD = gcc
RC = windres
LD = $(CROSSPREFIX)gcc
RC = $(CROSSPREFIX)windres
LDFLAGS = -s
AR = ar
AR = $(CROSSPREFIX)ar
ARFLAGS = -cq
LIBEXT = a
#LDLIBS += -lwsock32
LDLIBS += -lws2_32
RCFLAGS = -O coff -i
CFLAGS += -fno-strict-aliasing -Wall -Wno-unused # -pedantic
CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall #-Wno-unused #-pedantic
endif
INCLUDES = -I. -I.. -I../../include
INCLUDES = -I.. -I../../include
INCLUDES += -I$(OPENSSL_PATH)/outinc -I$(OPENSSL_PATH)/outinc/openssl
#LIBPATH += -L$(OPENSSL_PATH)/out
LIBPATH += -L..