Re: [AD] patch for makefile.vc |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
i'd like to include support for passing the -arch:sse and -arch:sse2
to msvc7, but i'd like to hear anyones thoughts?
should it be included in the debug & profiling builds also ?
should the -G7 (optimz for P4/AthlonXP) also be included for the
debug/profiling builds ?
i would propose moving the TARGET_ARCH_EXCL outside the optimz build
section and into the common section.
and allowing -arch:sse -arch:sse2 to be specificed via the TARGET_ARCH_EXCL
something like this: (icl stuff omitted, to be added after this idea is
clarified).
ifdef DEBUGMODE
# -------- debugging build --------
CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -Gd -Zi $(RUNTIME_FLAGS)d
SFLAGS = -DDEBUGMODE=$(DEBUGMODE) -Wall
LFLAGS = -debug -debugtype:cv
else
ifdef PROFILEMODE
# -------- profiling build --------
CFLAGS = $(WFLAGS) -Gd -Ox $(RUNTIME_FLAGS)
SFLAGS = -Wall
LFLAGS = -profile
else
# -------- optimised build --------
CFLAGS = $(WFLAGS) -Gd -O2 $(RUNTIME_FLAGS)
SFLAGS = -Wall
LFLAGS = -release
LIBPARMS =
ifdef COMPILER_MSVC7
CFLAGS += -GL
LFLAGS += -LTCG
LIBPARMS += -LTCG
endif
endif
endif
# ------ common options ---------
ifndef DEBUGMODE
ifdef TARGET_ARCH_EXCL
CFLAGS += $(TARGET_ARCH_EXCL)
else
CFLAGS += -GB
endif
endif