ru.po: Heavily updated translation
[midnight-commander.git] / nt / Makefile.VC4
blob8a08a7be075dd34825682d46113feff0ad3f6bfd
1 # Makefile.vc4
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 # --------------------------------------------------------------------------
11 MC_LIBS=advapi32.lib
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!
16 Path=c:/msdev/bin
17 CC=cl.exe
18 #      Just comment RSC out if you have problems with resources
19 RSC=rc.exe
20 LINK=link.exe
21 OBJ_SUFFIX=obj
22 OBJ_PLACE=-Fo
23 RES_PLACE=-fo
24 EXE_PLACE=-out:
26 # ---- Compiler-specific optional stuff
27 MC_MISC_CFLAGS=-nologo -YX -Fp$(OBJS_DIR)/mc.pch
29 ifndef RELEASE
30 # ---- Debug build
31 OBJS_DIR=debug
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)
38 RC_DEFINES=-D_DEBUG
39 else
40 # ---- Release build
41 OBJS_DIR=release
42 EXTRA_MC_SRCS=
43 SPECIFIC_DEFINES=
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)
49 endif
51 MC_EXE=$(OBJS_DIR)/mc.exe
53 # ---- Compiler independent defines
54 include Makefile.NT
56 # ---- Linkers are usualy compiler-specific
57 SPECIFIC_MC_LFLAGS= \
58         -nologo \
59         -subsystem:console \
60         -pdb:$(OBJS_DIR)/mc.pdb \
61         -machine:I386 \
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) $+