Various makefile fixes:

- don't link crt0 and msvcrt by default into system DLLs
 - strict warning checking: all warnings displayed, and treated as errors

svn path=/trunk/; revision=4105
This commit is contained in:
KJK::Hyperion 2003-02-02 19:24:16 +00:00
parent ec3fc77a5f
commit 2eabc8e38d
9 changed files with 68 additions and 16 deletions

View file

@ -1,4 +1,4 @@
# $Id: makefile,v 1.24 2003/01/15 20:05:50 robd Exp $ # $Id: makefile,v 1.25 2003/02/02 19:24:15 hyperion Exp $
PATH_TO_TOP = ../.. PATH_TO_TOP = ../..
@ -6,6 +6,13 @@ TARGET_TYPE = dynlink
TARGET_NAME = advapi32 TARGET_NAME = advapi32
TARGET_CFLAGS = \
-Wall \
-Werror \
-fno-builtin
TARGET_LFLAGS = -nostartfiles -nostdlib
TARGET_SDKLIBS = ntdll.a kernel32.a TARGET_SDKLIBS = ntdll.a kernel32.a
# TARGET_CFLAGS = -DUNICODE # TARGET_CFLAGS = -DUNICODE

View file

@ -1,4 +1,4 @@
# $Id: makefile,v 1.14 2001/08/21 20:13:06 chorns Exp $ # $Id: makefile,v 1.15 2003/02/02 19:24:15 hyperion Exp $
PATH_TO_TOP = ../.. PATH_TO_TOP = ../..
@ -8,6 +8,10 @@ TARGET_NAME = fmifs
TARGET_BASE = 0x76df0000 TARGET_BASE = 0x76df0000
TARGET_CFLAGS = -fno-builtin
TARGET_LFLAGS = -nostdlib -nostartfiles
TARGET_SDKLIBS = ntdll.a kernel32.a TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_OBJECTS = \ TARGET_OBJECTS = \

View file

@ -1,4 +1,4 @@
# $Id: makefile,v 1.23 2002/09/08 10:22:39 chorns Exp $ # $Id: makefile,v 1.24 2003/02/02 19:24:15 hyperion Exp $
PATH_TO_TOP = ../.. PATH_TO_TOP = ../..
@ -8,6 +8,14 @@ TARGET_NAME = gdi32
TARGET_BASE = 0x77ed0000 TARGET_BASE = 0x77ed0000
TARGET_CFLAGS = \
-I./include \
-Wall \
-Werror \
-fno-builtin
TARGET_LFLAGS = -nostartfiles -nostdlib
TARGET_SDKLIBS = ntdll.a kernel32.a advapi32.a TARGET_SDKLIBS = ntdll.a kernel32.a advapi32.a
TARGET_OBJECTS = $(TARGET_NAME).o TARGET_OBJECTS = $(TARGET_NAME).o

View file

@ -1,4 +1,4 @@
# $Id: makefile,v 1.7 2002/09/08 10:22:46 chorns Exp $ # $Id: makefile,v 1.8 2003/02/02 19:24:15 hyperion Exp $
PATH_TO_TOP = ../.. PATH_TO_TOP = ../..
@ -10,7 +10,15 @@ TARGET_BASE = 0x777a0000
TARGET_SDKLIBS = ntdll.a kernel32.a TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_CFLAGS = -I./include -DUNICODE -DDBG TARGET_CFLAGS = \
-I./include \
-Wall \
-Werror \
-fno-builtin \
-DUNICODE \
-DDBG
TARGET_LFLAGS = -nostartfiles -nostdlib
TARGET_OBJECTS = $(TARGET_NAME).o TARGET_OBJECTS = $(TARGET_NAME).o

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.9 2002/09/08 10:23:08 chorns Exp $ # $Id: Makefile,v 1.10 2003/02/02 19:24:15 hyperion Exp $
PATH_TO_TOP = ../.. PATH_TO_TOP = ../..
@ -11,7 +11,14 @@ TARGET_BASE = 0x10000000
TARGET_SDKLIBS = ntdll.a TARGET_SDKLIBS = ntdll.a
TARGET_CFLAGS = -I./include -D__SECUR32__ TARGET_CFLAGS = \
-I./include \
-Wall \
-Werror \
-fno-builtin \
-D__SECUR32__
TARGET_LFLAGS = -nostartfiles -nostdlib
TARGET_OBJECTS = lsa.o dllmain.o TARGET_OBJECTS = lsa.o dllmain.o

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.10 2003/02/02 17:36:16 hyperion Exp $ # $Id: Makefile,v 1.11 2003/02/02 19:24:16 hyperion Exp $
PATH_TO_TOP = ../.. PATH_TO_TOP = ../..
@ -15,11 +15,9 @@ TARGET_CFLAGS = \
-DUNICODE \ -DUNICODE \
-Wall \ -Wall \
-Werror \ -Werror \
-nostdinc \
-nostdlib \
-fno-builtin -fno-builtin
TARGET_LFLAGS = -nostartfiles TARGET_LFLAGS = -nostartfiles -nostdlib
TARGET_OBJECTS = $(TARGET_NAME).o TARGET_OBJECTS = $(TARGET_NAME).o

View file

@ -1,4 +1,4 @@
# $Id: makefile,v 1.10 2002/09/08 10:23:13 chorns Exp $ # $Id: makefile,v 1.11 2003/02/02 19:24:16 hyperion Exp $
PATH_TO_TOP = ../.. PATH_TO_TOP = ../..
@ -8,7 +8,11 @@ TARGET_NAME = version
TARGET_BASE = 0x77a90000 TARGET_BASE = 0x77a90000
TARGET_SDKLIBS = kernel32.a TARGET_CFLAGS = -fno-builtin
TARGET_LFLAGS = -nostdlib -nostartfiles
TARGET_SDKLIBS = kernel32.a ntdll.a
TARGET_OBJECTS = misc/libmain.o misc/stubs.o TARGET_OBJECTS = misc/libmain.o misc/stubs.o

View file

@ -1,4 +1,4 @@
# $Id: makefile,v 1.9 2002/09/08 10:23:13 chorns Exp $ # $Id: makefile,v 1.10 2003/02/02 19:24:16 hyperion Exp $
PATH_TO_TOP = ../.. PATH_TO_TOP = ../..
@ -8,7 +8,16 @@ TARGET_NAME = ws2_32
TARGET_BASE = 0x77780000 TARGET_BASE = 0x77780000
TARGET_CFLAGS = -I./include -DUNICODE -DLE -DDBG TARGET_CFLAGS = \
-I./include \
-Wall \
-Werror \
-fno-builtin \
-DUNICODE \
-DLE \
-DDBG
TARGET_LFLAGS = -nostartfiles -nostdlib
TARGET_SDKLIBS = ntdll.a kernel32.a advapi32.a TARGET_SDKLIBS = ntdll.a kernel32.a advapi32.a

View file

@ -8,7 +8,14 @@ TARGET_NAME = ws2help
TARGET_BASE = 0x777c0000 TARGET_BASE = 0x777c0000
TARGET_CFLAGS = -DUNICODE TARGET_CFLAGS = \
-I./include \
-Wall \
-Werror \
-fno-builtin \
-DUNICODE
TARGET_LFLAGS = -nostartfiles -nostdlib
TARGET_SDKLIBS = ntdll.a kernel32.a ws2_32.a TARGET_SDKLIBS = ntdll.a kernel32.a ws2_32.a