forked from gwsw/less
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.o9g
42 lines (30 loc) · 1.13 KB
/
Makefile.o9g
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
# Makefile for less.
# OS-9 version for gcc.
#### Start of system configuration section. ####
CC=gcc
CFLAGS = -D_OSK -I. -O
CFLAGS_COMPILE_ONLY = -c
LDFLAGS = -o $@
LIBS = -ltermlib
O = r
#### End of system configuration section. ####
.SUFFIXES: .c .${O}
# This rule allows us to supply the necessary -D options
# in addition to whatever the user asks for.
.c.${O}:
${CC} ${CFLAGS_COMPILE_ONLY} ${CPPFLAGS} ${CFLAGS} $<
OBJ = \
main.${O} screen.${O} brac.${O} ch.${O} charset.${O} cmdbuf.${O} \
command.${O} cvt.${O} decode.${O} edit.${O} filename.${O} forwback.${O} \
help.${O} ifile.${O} input.${O} jump.${O} lesskey_parse.${O} line.${O} linenum.${O} \
lsystem.${O} mark.${O} optfunc.${O} option.${O} opttbl.${O} os.${O} \
output.${O} pattern.${O} position.${O} prompt.${O} search.${O} signal.${O} \
tags.${O} ttyin.${O} version.${O} xbuf.${O} regexp.${O}
all: less lesskey
less: ${OBJ}
${CC} ${OBJ} ${LDFLAGS} ${LIBS}
lesskey: lesskey.${O} lesskey_parse.${O} version.${O} xbuf.${O}
${CC} lesskey.${O} lesskey_parse.${O} version.${O} xbuf.${O} ${LDFLAGS}
${OBJ}: defines.h less.h
defines.h: defines.o9
copy defines.o9 defines.h -rf