3 # Midnight Commander for NT makefile
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
23 # ---- Compiler-specific optional stuff
24 MC_MISC_CFLAGS=-mno-cygwin
31 SPECIFIC_MC_CFLAGS=-g -O0 $(MC_MISC_CFLAGS)
32 SPECIFIC_MC_LFLAGS_EXTRA=
33 SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
34 SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS)
35 RC_DEFINES=--define WINDRES --define _DEBUG
41 SPECIFIC_MC_CFLAGS=-O2 $(MC_MISC_CFLAGS)
42 SPECIFIC_MC_LFLAGS_EXTRA=
43 SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
44 SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS)
45 RC_DEFINES=--define WINDRES --define RELEASE=$(RELEASE)
48 # ---- Compiler independent defines
51 # ---- Linkers are very compiler-specific
53 SPECIFIC_MC_LFLAGS=$(SPECIFIC_MC_LFLAGS_EXTRA)
56 $(MC_EXE): $(MC_RES) $(OBJS) $(MCEDIT_OBJS) $(SLANG_OBJS)
57 $(LINK) $(EXE_PLACE) $(MC_EXE) $(MC_LIBS) $(SPECIFIC_MC_LFLAGS) $+