Skip to content

Commit

Permalink
Update for Microsoft compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed May 14, 1996
1 parent c3631fe commit 9df53a1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
20 changes: 15 additions & 5 deletions Makefile.dsu
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@
#### Start of system configuration section. ####

CC = cl
LIBDIR = \msc6.0\lib

CFLAGS = -O -Alfw
LDFLAGS = -O
# Change the following directories to match your installation.
LIBDIR = c:\msvc\lib
INCDIR = c:\msvc\include

# CFLAGS are compile-time options and LDFLAGS are link-time options. They are
# customized for MSVC 1.0 (MSC 8.0). If you have a different version of the
# compiler, you may need to change some of the options to their equivalents.
# -Ot optimize for speed
# -AL large memory model
# -Za ANSI C conformance
# -nologo suppress MSVC banners
# -onerror:noexe no .EXE file if link errors occur
CFLAGS = -Ot -AL -Za -nologo
LDFLAGS = -onerror:noexe -nologo
LIBS = $(LIBDIR)\llibce.lib $(LIBDIR)\graphics.lib

#### End of system configuration section. ####

# This rule allows us to supply the necessary -D options
# in addition to whatever the user asks for.
.c.obj:
$(CC) -c -I. $(CPPFLAGS) $(CFLAGS) $<
$(CC) -c -I. -I$(INCDIR) $(CPPFLAGS) $(CFLAGS) $<

OBJ = main.obj screen.obj brac.obj ch.obj charset.obj cmdbuf.obj command.obj \
decode.obj edit.obj filename.obj forwback.obj help.obj ifile.obj \
Expand Down
15 changes: 13 additions & 2 deletions defines.ds
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@

/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
#define __STDC__ 1

/*
* Regular expression library.
Expand Down Expand Up @@ -298,7 +297,7 @@
#define HAVE_FCNTL_H 1

/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 0
#define HAVE_LIMITS_H 1

/* Define if you have the <stdio.h> header file. */
#define HAVE_STDIO_H 1
Expand Down Expand Up @@ -354,4 +353,16 @@
#define S_IFMT _S_IFMT
#define S_IFDIR _S_IFDIR
#define S_IFREG _S_IFREG
#define dup _dup
#define open _open
#define lseek _lseek
#define write _write
#define creat _creat
#define fstat _fstat
#define isatty _isatty
#define close _close
#define read _read
#define ungetch _ungetch
#define kbhit _kbhit
#define getch _getch
#endif

0 comments on commit 9df53a1

Please sign in to comment.