mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
60 lines
1.5 KiB
Makefile
60 lines
1.5 KiB
Makefile
# 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
|
|
# 980206 hacked by Pavel Roskin to make it work with GNU make
|
|
# --------------------------------------------------------------------------
|
|
|
|
MC_LIBS=
|
|
|
|
# ---- 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=d:/emx/bin
|
|
CC=gcc.exe
|
|
# Just comment RSC out if you have problems with resources
|
|
# RSC=rc.exe
|
|
LINK=gcc.exe
|
|
OBJ_SUFFIX=o
|
|
OBJ_PLACE=-o
|
|
RES_PLACE=-fo
|
|
|
|
# ---- Compiler-specific optional stuff
|
|
MC_MISC_CFLAGS=-Zmt
|
|
|
|
ifndef RELEASE
|
|
# ---- Debug build
|
|
OBJS_DIR=debug
|
|
EXTRA_MC_SRCS=
|
|
SPECIFIC_DEFINES=
|
|
SPECIFIC_MC_CFLAGS=-g -O0 $(MC_MISC_CFLAGS)
|
|
SPECIFIC_MC_LFLAGS_EXTRA=
|
|
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=-O2 $(MC_MISC_CFLAGS)
|
|
SPECIFIC_MC_LFLAGS_EXTRA=
|
|
SPECIFIC_SLANG_CFLAGS=$(SPECIFIC_MC_CFLAGS)
|
|
SPECIFIC_MCEDIT_CFLAGS=$(SPECIFIC_MC_CFLAGS)
|
|
RC_DEFINES=-DRELEASE=$(RELEASE)
|
|
endif
|
|
|
|
SPECIFIC_MC_LFLAGS= \
|
|
-o $(OBJS_DIR)/mc.exe \
|
|
$(SPECIFIC_MC_LFLAGS_EXTRA)
|
|
|
|
# ---- Compiler independent defines
|
|
include Makefile.OS2
|
|
|
|
# ---- Linkers are very compiler-specific
|
|
$(OBJS_DIR)/mc.exe: $(MC_RES) $(OBJS) $(MCEDIT_OBJS) $(SLANG_OBJS)
|
|
$(LINK) -Zmt $(MC_LIBS) $(SPECIFIC_MC_LFLAGS) $+
|