1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
|
# $Id: makefile.msc,v 1.2 2001/03/02 08:48:31 amura Exp $
# Makefile for Ng at MS-DOS with MS-C 5.1 / 6.0 & MS make.
#
# This "makefile.msc" is made for MS-C 5.1 / 6.0 and standard "make" utility
# that is included in MS-C 5.1 / 6.0.
#
# If you have more better "make" command (more similar to UNIX make),
# please use "makefile" file.
#
# To use this makefile, please type
# A> make makefile.msc
#
# $Log: makefile.msc,v $
# Revision 1.2 2001/03/02 08:48:31 amura
# now AUTOSAVE feature implemented almost all (except for WIN32
#
# Revision 1.1.1.1 2000/06/27 01:47:58 amura
# import to CVS
#
# CDEFS gets defines, and gets passed to lint. CFLAGS gets flags, and doesn't
# get passed to lint.
#
# Now, compile time options are defined in a "config.h".
#
CDEFS =
CFLAGS = -O $(CDEFS) -AL
# MACHINE define the MS-DOS machine type.
# -DJ3100 and -DPC9801 or none are available.
# Define "-DFEPCTRL -DmemL" at FEPDEF if you want to use FEPCTRL function.
# MACHINE and FEPDEF must be same as config.h.
#
MACHINE =
#MACHINE = -DJ3100
#MACHINE = -DPC9801
FEPDEF = -DFEPCTRL -DmemL
AFLAGS = $(MACHINE) $(FEPDEF) -Mx
CC = cl
# Objects which only depend on the "standard" includes
OBJS = basic.obj dir.obj dired.obj shell.obj version.obj window.obj \
kinsoku.obj jump.obj autosave.obj
# Those with unique requirements
IND = buffer.obj complt.obj display.obj cmode.obj echo.obj extend.obj \
file.obj help.obj kbd.obj keymap.obj line.obj macro.obj main.obj \
modes.obj match.obj parag.obj random.obj region.obj regex.obj \
research.obj search.obj skg.obj kanji.obj undo.obj word.obj
# System dependent objects
OOBJS = cinfo.obj spawn.obj tty.obj ttykbd.obj
# termlib objects
TOBJS = termcap.obj
# MS-DOS additional objects
DOBJS = dosutil.obj fepctrl.obj fepcsub.obj rawgetc.obj putline.obj
OBJ = $(OBJS) $(IND) $(OOBJS) $(TOBJS) $(DOBJS) fileio.obj ttyio.obj
OSRCS = cinfo.c fileio.c spawn.c ttyio.c tty.c ttykbd.c
TSRCS = termcap.c
DSRCS = dosutil.c fepctrl.c rawgetc.asm putline.c
SRCS = basic.c cmode.c dir.c dired.c file.c line.c match.c parag.c \
random.c region.c search.c version.c window.c word.c \
buffer.c display.c echo.c extend.c help.c kbd.c keymap.c \
macro.c main.c modes.c regex.c research.c kanji.c kinsoku.c \
skg.c jump.c autosave.c
OINCS = ttydef.h sysdef.h chrdef.h
INCS = config.h def.h
REINCS = regex_e.h regex_j.h regex_j.c regex_e.h kanji_.h kanji_.c
# strip mg once you're satisfied it'll run -- makes it much smaller
#strip:
# strip mg
.c.obj:
$(CC) $(CFLAGS) -c -o $@ $*.c
autosave.obj: $(INCS) $(OINCS)
basic.obj: $(INCS) $(OINCS)
dir.obj: $(INCS) $(OINCS)
dired.obj: $(INCS) $(OINCS)
file.obj: $(INCS) $(OINCS)
line.obj: $(INCS) $(OINCS)
shell.obj: $(INCS) $(OINCS)
version.obj: $(INCS) $(OINCS)
window.obj: $(INCS) $(OINCS)
word.obj: $(INCS) $(OINCS) undo.h
kinsoku.obj: $(INCS) $(OINCS)
buffer.obj: $(INCS) $(OINCS) kbd.h undo.h
cmode.obj: $(INCS) $(OINCS) undo.h
file.obj: $(INCS) $(OINCS) undo.h
line.obj: $(INCS) $(OINCS) undo.h
parag.obj: $(INCS) $(OINCS) undo.h
random.obj: $(INCS) $(OINCS) undo.h
region.obj: $(INCS) $(OINCS) undo.h
undo.obj: $(INCS) $(OINCS) undo.h
complt.obj: $(INCS) $(OINCS) kbd.h complt.h
display.obj: $(INCS) $(OINCS) kbd.h
keymap.obj: $(INCS) $(OINCS) kbd.h
modes.obj: $(INCS) $(OINCS) kbd.h
fileio.obj: $(INCS) $(OINCS) kbd.h
echo.obj: $(INCS) $(OINCS) key.h varargs.h
extend.obj: $(INCS) $(OINCS) kbd.h key.h macro.h
help.obj: $(INCS) $(OINCS) kbd.h key.h macro.h
kanji.obj: $(INCS) $(OINCS) kinit.h
kbd.obj: $(INCS) $(OINCS) macro.h kbd.h key.h undo.h
macro.obj: $(INCS) $(OINCS) macro.h key.h
skg.obj: $(INCS) $(OINCS) macro.h key.h undo.h
main.obj: $(INCS) $(OINCS) macro.h
search.obj: $(INCS) $(OINCS) macro.h
match.obj: $(INCS) $(OINCS) key.h
research.obj: $(INCS) $(OINCS) $(REINCS) macro.h
regex.obj: $(INCS) $(OINCS) $(REINCS)
cinfo.obj: $(INCS) $(OINCS)
spawn.obj: $(INCS) $(OINCS)
ttyio.obj: $(INCS) $(OINCS) fepctrl.h
tty.obj: $(INCS) $(OINCS)
ttykbd.obj: $(INCS) $(OINCS)
fileio.obj: $(INCS) $(OINCS) kbd.h
dosutil.obj: config.h
fepctrl.obj: config.h fepctrl.h
rawgetc.obj: rawgetc.asm
masm $(AFLAGS) rawgetc.asm,rawgetc.obj,nul,nul;
putline.obj: config.h
termcap.obj:
ng.exe: $(OBJ)
link @linkfile
#sysdef.h: sys/$(SYS)/sysdef.h # Update links, if needed.
# rm -f sysdef.h
# ln sys/$(SYS)/sysdef.h .
#ttydef.h: sys/default/ttydef.h
# rm -f ttydef.h
# ln sys/default/ttydef.h .
#chrdef.h: sys/default/chrdef.h
# rm -f chrdef.h
# ln sys/default/chrdef.h .
#fileio.c: sys/$(SYS)/fileio.c
# rm -f fileio.c
# ln sys/$(SYS)/fileio.c .
#spawn.c: sys/$(SYS)/spawn.c
# rm -f spawn.c
# ln sys/$(SYS)/spawn.c .
#tty.c: sys/default/tty.c
# rm -f tty.c
# ln sys/default/tty.c .
#ttyio.c: sys/$(SYS)/ttyio.c
# rm -f ttyio.c
# ln sys/$(SYS)/ttyio.c .
#ttykbd.c: sys/default/ttykbd.c
# rm -f ttykbd.c
# ln sys/default/ttykbd.c .
#cinfo.c: sys/default/cinfo.c
# rm -f cinfo.c
# ln sys/default/cinfo.c .
#port: $(SRCS) $(INCS)
# rm -f port
# tar cfb port 1 $?
#clean:
# del $(OBJ) $(OSRCS) $(OINCS)
#clean:
# del *.obj
|