1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

[BUILD_TYPE]: Build optimized version in its own dir.

(ARCH_CFLAGS) [BUILD_TYPE == spd]: Build optimized version.
This commit is contained in:
Geoff Voelker 1996-05-03 19:09:53 +00:00
parent d6cb678cd5
commit b5e9eb93c8

View File

@ -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