1998-02-27 07:54:42 +03:00
|
|
|
# Makefile.vc4
|
|
|
|
#
|
|
|
|
# Midnight Commander for Win32 makefile
|
|
|
|
# for Microsoft Visual C++ 4.x
|
|
|
|
#
|
|
|
|
# Hacked by Dan Nicolaescu from Visual IDE mak
|
|
|
|
# Hacked by Pavel Roskin to make it work with cmd.exe from Windows NT4
|
1998-03-07 23:36:45 +03:00
|
|
|
# 980206 hacked by Pavel Roskin to make it work with GNU make
|
1998-02-27 07:54:42 +03:00
|
|
|
# --------------------------------------------------------------------------
|
|
|
|
|
1998-03-07 23:36:45 +03:00
|
|
|
MC_LIBS=advapi32.lib
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-03-07 23:36:45 +03:00
|
|
|
# ---- Path (case-sensitive!) is searched for executables
|
|
|
|
# If the command line contains quotes, it is passed to shell
|
|
|
|
# Errors are ignored in this case!
|
|
|
|
Path=c:/msdev/bin
|
1998-02-27 07:54:42 +03:00
|
|
|
CC=cl.exe
|
1998-03-07 23:36:45 +03:00
|
|
|
# Just comment RSC out if you have problems with resources
|
1998-02-27 07:54:42 +03:00
|
|
|
RSC=rc.exe
|
|
|
|
LINK=link.exe
|
1998-03-07 23:36:45 +03:00
|
|
|
OBJ_SUFFIX=obj
|
|
|
|
OBJ_PLACE=-Fo
|
|
|
|
RES_PLACE=-fo
|
|
|
|
EXE_PLACE=-out:
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-03-07 23:36:45 +03:00
|
|
|
# ---- Compiler-specific optional stuff
|
|
|
|
MC_MISC_CFLAGS=-nologo -YX -Fp$(OBJS_DIR)/mc.pch
|
|
|
|
|
|
|
|
ifndef RELEASE
|
|
|
|
# ---- Debug build
|
|
|
|
OBJS_DIR=debug
|
|
|
|
EXTRA_MC_SRCS=util.debug.c
|
1998-02-27 07:54:42 +03:00
|
|
|
SPECIFIC_DEFINES=-DHAVE_TRACE
|
1998-03-07 23:36:45 +03:00
|
|
|
SPECIFIC_MC_CFLAGS=-MLd -W3 -Gm -Zi -Od -Fd$(OBJS_DIR)/mc.pdb $(MC_MISC_CFLAGS)
|
1998-02-27 07:54:42 +03:00
|
|
|
SPECIFIC_MC_LFLAGS_EXTRA=-debug -incremental:yes
|
1998-03-07 23:36:45 +03:00
|
|
|
SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
|
|
|
|
SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS)
|
|
|
|
RC_DEFINES=-D_DEBUG
|
|
|
|
else
|
|
|
|
# ---- Release build
|
|
|
|
OBJS_DIR=release
|
|
|
|
EXTRA_MC_SRCS=
|
|
|
|
SPECIFIC_DEFINES=
|
|
|
|
SPECIFIC_MC_CFLAGS=-ML -W3 -O2 $(MC_MISC_CFLAGS)
|
|
|
|
SPECIFIC_MC_LFLAGS_EXTRA=-incremental:no
|
|
|
|
SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
|
|
|
|
SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS)
|
|
|
|
RC_DEFINES=-DRELEASE=$(RELEASE)
|
|
|
|
endif
|
|
|
|
|
|
|
|
MC_EXE=$(OBJS_DIR)/mc.exe
|
|
|
|
|
|
|
|
# ---- Compiler independent defines
|
|
|
|
include Makefile.NT
|
|
|
|
|
|
|
|
# ---- Linkers are usualy compiler-specific
|
|
|
|
SPECIFIC_MC_LFLAGS= \
|
|
|
|
-nologo \
|
|
|
|
-subsystem:console \
|
|
|
|
-pdb:$(OBJS_DIR)/mc.pdb \
|
|
|
|
-machine:I386 \
|
|
|
|
$(SPECIFIC_MC_LFLAGS_EXTRA)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-03-07 23:36:45 +03:00
|
|
|
$(MC_EXE): $(MC_RES) $(OBJS) $(MCEDIT_OBJS) $(SLANG_OBJS)
|
|
|
|
$(LINK) $(EXE_PLACE)$(MC_EXE) $(MC_LIBS) $(SPECIFIC_MC_LFLAGS) $+
|