3 # Midnight Commander for Win32 makefile
4 # for Microsoft Visual C++ 4.x
6 # Hacked by Dan Nicolaescu from Visual IDE mak
7 # Hacked by Pavel Roskin to make it work with cmd.exe from Windows NT4
8 # 980206 hacked by Pavel Roskin to make it work with GNU make
9 # --------------------------------------------------------------------------
13 # ---- Path (case-sensitive!) is searched for executables
14 # If the command line contains quotes, it is passed to shell
15 # Errors are ignored in this case!
18 # Just comment RSC out if you have problems with resources
26 # ---- Compiler-specific optional stuff
27 MC_MISC_CFLAGS=-nologo -YX -Fp$(OBJS_DIR)/mc.pch
32 EXTRA_MC_SRCS=util.debug.c
33 SPECIFIC_DEFINES=-DHAVE_TRACE
34 SPECIFIC_MC_CFLAGS=-MLd -W3 -Gm -Zi -Od -Fd$(OBJS_DIR)/mc.pdb $(MC_MISC_CFLAGS)
35 SPECIFIC_MC_LFLAGS_EXTRA=-debug -incremental:yes
36 SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
37 SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS)
44 SPECIFIC_MC_CFLAGS=-ML -W3 -O2 $(MC_MISC_CFLAGS)
45 SPECIFIC_MC_LFLAGS_EXTRA=-incremental:no
46 SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
47 SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS)
48 RC_DEFINES=-DRELEASE=$(RELEASE)
51 MC_EXE=$(OBJS_DIR)/mc.exe
53 # ---- Compiler independent defines
56 # ---- Linkers are usualy compiler-specific
60 -pdb:$(OBJS_DIR)/mc.pdb \
62 $(SPECIFIC_MC_LFLAGS_EXTRA)
64 $(MC_EXE): $(MC_RES) $(OBJS) $(MCEDIT_OBJS) $(SLANG_OBJS)
65 $(LINK) $(EXE_PLACE)$(MC_EXE) $(MC_LIBS) $(SPECIFIC_MC_LFLAGS) $+