-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMAKEFILE.ZC3
109 lines (96 loc) · 2.91 KB
/
MAKEFILE.ZC3
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
# Copyright (c) 1990,1991,1992 Chris and John Downey
#***
#
# @(#)makefile.zc3 2.2 (Chris & John Downey) 7/31/92
#
# program name:
# xvi
# function:
# PD version of UNIX "vi" editor, with extensions.
# module name:
# makefile.zc3
# module function:
# Makefile for Zortech C 3.00 for MS-DOS
#
# Microsoft Macro Assembler (or a compatible assembler) is also
# required.
# history:
# STEVIE - ST Editor for VI Enthusiasts, Version 3.10
# Originally by Tim Thompson (twitch!tjt)
# Extensive modifications by Tony Andrews (onecom!wldrdg!tony)
# Heavily modified by Chris & John Downey
#***
#
# Name of this file.
#
THISFILE= makefile.zc3
#
# Set this to x to run the 386 extended version of the compiler
# itself. On an 8088, 8086, virtual 8086 or 80286 development system,
# set it to nothing.
#
CC_EXE_TYPE= x
MEMMODEL= l
REGEXPDIR= .
CC= ztc
OPTFLAGS= -o+reg -o+loop
DEBUGFLAGS= -g
CDEFS= -DMSDOS -D__STDC__=1
CFLAGS= -m$(MEMMODEL) -b$(CC_EXE_TYPE) -I$(REGEXPDIR) $(CDEFS) $(OPTFLAGS)
AS= masm
ASFLAGS= -Ml -DMEMMODEL=$(MEMMODEL)
LD= blink$(CC_EXE_TYPE)
# LD= c:\bin\rmode\link
LDFLAGS= # /CO /MAP
TARGET= xvi
INC= ascii.h param.h ptrfunc.h xvi.h virtscr.h msdos.h ibmpc.h \
8086mm.inc
SRC= defscr.c startup.c \
alloc.c buffers.c edit.c cmdline.c cursor.c \
ex_cmds1.c ex_cmds2.c events.c flexbuf.c \
fileio.c find.c ascii.c map.c mark.c misccmds.c \
mouse.c movement.c normal.c param.c preserve.c ptrfunc.c \
pipe.c \
screen.c $(REGEXPDIR)\regexp.c \
search.c status.c \
tags.c undo.c windows.c yankput.c msdos_c.c msdos_a.asm \
ibmpc_a.asm ibmpc_c.c version.c
OBJ= defscr.obj startup.obj \
alloc.obj buffers.obj edit.obj cmdline.obj cursor.obj \
ex_cmds1.obj ex_cmds2.obj events.obj flexbuf.obj \
fileio.obj find.obj ascii.obj map.obj mark.obj \
misccmds.obj mouse.obj movement.obj normal.obj param.obj \
pipe.obj \
preserve.obj ptrfunc.obj screen.obj search.obj status.obj \
tags.obj undo.obj windows.obj yankput.obj \
$(REGEXPDIR)\regexp.obj \
msdos_c.obj msdos_a.obj ibmpc_a.obj ibmpc_c.obj
LINKFILE= $(TARGET).lnk
all: $(TARGET).exe
$(TARGET).exe: $(OBJ) $(LINKFILE) version.c
$(CC) $(CFLAGS) -c version.c
$(LD) @$(LINKFILE)
$(LINKFILE): $(THISFILE)
+echo defscr + startup + > $@
+echo alloc + buffers + edit + cmdline + cursor + >> $@
+echo ex_cmds1 + ex_cmds2 + events + >> $@
+echo flexbuf + fileio + find + ascii + >> $@
+echo map + mark + misccmds + mouse + movement + >> $@
+echo normal + param + preserve + pipe + >> $@
+echo ptrfunc + screen + search + status + tags + >> $@
+echo undo + windows + yankput + >> $@
+echo $(REGEXPDIR)\regexp + >> $@
+echo msdos_c + msdos_a + ibmpc_a + ibmpc_c + >> $@
+echo version + >> $@
# +echo $(LIB)\_main$(MEMMODEL) + >> $@
+echo $(LIB)\int >> $@
+echo $(TARGET).exe $(LDFLAGS) ; >> $@
.c.obj:
# $(CC) $(CFLAGS) -o$@ -c $<
$(CC) $(CFLAGS) -c $<
.asm.obj:
$(AS) $(ASFLAGS) $* ;
clean:
del *.obj
del $(LINKFILE)
del *.map