-
Notifications
You must be signed in to change notification settings - Fork 84
/
Makefile.dsg
72 lines (51 loc) · 1.54 KB
/
Makefile.dsg
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
# Makefile for less under DJGPP v2.0 or later.
#### Start of system configuration section. ####
srcdir = .
VPATH = .
CC = gcc
AWK = gawk
#CFLAGS = -O2
CFLAGS = -g
CFLAGS_COMPILE_ONLY = -c
#LDFLAGS = -s
LDFLAGS = -g
O=o
LIBS =
#### End of system configuration section. ####
# This rule allows us to supply the necessary -D options
# in addition to whatever the user asks for.
.c.o:
${CC} -I. ${CFLAGS_COMPILE_ONLY} ${CPPFLAGS} ${CFLAGS} $<
OBJ = main.${O} screen.${O} brac.${O} ch.${O} charset.${O} cmdbuf.${O} \
command.${O} decode.${O} edit.${O} filename.${O} forwback.${O} \
help.${O} ifile.${O} input.${O} jump.${O} line.${O} linenum.${O} \
lsystem.${O} mark.${O} optfunc.${O} option.${O} opttbl.${O} os.${O} \
output.${O} position.${O} prompt.${O} search.${O} signal.${O} \
tags.${O} ttyin.${O} version.${O}
all: less lesskey
less: ${OBJ}
${CC} ${LDFLAGS} -o $@ ${OBJ} ${LIBS}
lesskey: lesskey.${O} version.${O}
${CC} ${LDFLAGS} -o $@ lesskey.${O} version.${O}
defines.h: defines.ds
cp -f $< $@
${OBJ}: less.h defines.h funcs.h
info:
install-info:
dvi:
check:
installcheck:
TAGS:
etags *.c *.h
newfuncs:
rm -f funcs.h
${AWK} -f mkfuncs.awk ${OBJ:.${O}=.c} > funcs.h
clean:
for %f in (*.${O} less lesskey *.exe) do if exist %f del %f
mostlyclean: clean
distclean: clean
if not exist Makefile.dsg ren Makefile Makefile.dsg
if not exist defines.ds ren defines.h defines.ds
for %f in (Makefile defines.h) do if exist %f del %f
realclean: distclean
if exist TAGS del TAGS