3 # Midnight Commander for Win32 makefile
4 # for Microsoft Visual C++ 4.x and above
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 # --------------------------------------------------------------------------
18 # Just comment RSC out if you have problems with resources
22 # ---- Compiler-specific optional stuff
23 MC_MISC_CFLAGS=-nologo -YX -Fp$(OBJS_DIR)/mc.pch
28 EXTRA_MC_SRCS=trace_nt.c
29 SPECIFIC_DEFINES=-DHAVE_TRACE
30 SPECIFIC_MC_CFLAGS=-MLd -W3 -Gm -Zi -Od -Fd$(OBJS_DIR)/mc.pdb $(MC_MISC_CFLAGS)
31 SPECIFIC_MC_LFLAGS_EXTRA=-debug -incremental:yes
32 SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
33 SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS)
40 SPECIFIC_MC_CFLAGS=-ML -W3 -O2 $(MC_MISC_CFLAGS)
41 SPECIFIC_MC_LFLAGS_EXTRA=-incremental:no
42 SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
43 SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS)
44 RC_DEFINES=-DRELEASE=$(RELEASE)
47 # ---- Compiler independent defines
50 # ---- Linkers are usualy compiler-specific
51 SPECIFIC_MC_LFLAGS=-nologo -subsystem:console -pdb:$(OBJS_DIR)/mc.pdb \
52 -machine:I386 $(SPECIFIC_MC_LFLAGS_EXTRA)
55 $(MC_EXE): $(MC_RES) $(OBJS) $(MCEDIT_OBJS) $(SLANG_OBJS)
56 $(LINK) $(EXE_PLACE)$(MC_EXE) $(MC_LIBS) $(SPECIFIC_MC_LFLAGS) $+