From b5e9eb93c805dd6b85c7b28584322b4fcaa613b0 Mon Sep 17 00:00:00 2001 From: Geoff Voelker Date: Fri, 3 May 1996 19:09:53 +0000 Subject: [PATCH] [BUILD_TYPE]: Build optimized version in its own dir. (ARCH_CFLAGS) [BUILD_TYPE == spd]: Build optimized version. --- nt/makefile.def | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nt/makefile.def b/nt/makefile.def index ba77a54a493..e83b0b71b07 100644 --- a/nt/makefile.def +++ b/nt/makefile.def @@ -140,7 +140,11 @@ CFLAGS = $(CFLAGS_COMMON) CFLAGS = $(CFLAGS) -DHAVE_NTGUI=1 !endif +!ifdef BUILD_TYPE +OBJDIR = obj-$(BUILD_TYPE) +!else OBJDIR = obj +!endif $(OBJDIR):; -mkdir $(OBJDIR) BLD = $(OBJDIR)\$(ARCH) $(BLD): $(OBJDIR) @@ -165,7 +169,11 @@ EMACS_ICON_PATH = ..\nt\emacs.ico ADDPM = ..\nt\$(BLD)\addpm.exe !if "$(ARCH)" == "i386" +!if "$(BUILD_TYPE)" == "spd" +ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -O2b2 -G5d -Zi +!else ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -G3d -Zi -Od +!endif ARCH_LDFLAGS = -align:0x1000 $(SYS_LDFLAGS) !else -- 2.39.2