Support for RSX added.

This commit is contained in:
Pavel Machek 1998-05-08 16:45:06 +00:00
parent e161b6d92c
commit 963146132b
3 changed files with 63 additions and 4 deletions

View File

@ -9,12 +9,13 @@
include ../Make.common
FILES = BUGS Makefile Makefile.BC2 Makefile.BC5 Makefile.EMX Makefile.MIN \
Makefile.IBM Makefile.PC Makefile.VC4 README TODO chmod.c \
config.h cons_nt.c cons_os2.c dirent.h dirent_nt.c dirent_os2.c \
FILES = BUGS Makefile Makefile.BC2 Makefile.BC5 Makefile.EMX \
Makefile.MIN Makefile.IBM Makefile.PC Makefile.VC4 \
Makefile.RSX README TODO ChangeLog chmod.c config.h \
cons_nt.c cons_os2.c dirent.h dirent_nt.c dirent_os2.c \
drive.c drive.h key_nt.c key_os2.c mc.def mc.rc mc_nt.ico \
mc_os2.ico slint_pc.c trace_nt.c trace_nt.h util_nt.c \
util_os2.c util_win32.c util_win32.h util_winnt.c ChangeLog
util_os2.c util_win32.c util_win32.h util_winnt.c
FILESSYS = sys/param.h sys/time.h

View File

@ -14,6 +14,8 @@
# For Windows NT:
# Makefile.VC4: Microsoft Visual C++ 4.0 and above
# Makefile.BC5: Borland C++ 5.x
# Makefile.MIN: MinGW
# Makefile.RSX: RSX
# For OS/2:
# Makefile.EMX: EMX/GCC
# Makefile.BC2: Borland C++ 2.x

56
pc/Makefile.RSX Normal file
View File

@ -0,0 +1,56 @@
# Makefile.RSX
#
# Midnight Commander for NT makefile
# for RSX
#
# 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
# --------------------------------------------------------------------------
TARGET_OS=NT
CC=gcc.exe
LINK=gcc.exe
OBJ_SUFFIX=o
OBJ_PLACE=-o
EXE_PLACE=-o
# Just comment RSC out if you have problems with resources
# RSC=rc.exe
# RES_PLACE=-fo
# ---- Compiler-specific optional stuff
MC_MISC_CFLAGS=-Zrsx32
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
# ---- Compiler independent defines
include Makefile.PC
# ---- Linkers are very compiler-specific
SPECIFIC_MC_LFLAGS=-Zrsx32 $(SPECIFIC_MC_LFLAGS_EXTRA)
MC_LIBS=-lvideont -ladvapi32
$(MC_EXE): $(MC_RES) $(OBJS) $(MCEDIT_OBJS) $(SLANG_OBJS)
$(LINK) $(EXE_PLACE) $(MC_EXE) $(SPECIFIC_MC_LFLAGS) $+ $(MC_LIBS)