File: Makefile.o2e

package info (click to toggle)
jless 382-iso262-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,808 kB
  • ctags: 1,332
  • sloc: sh: 18,019; ansic: 15,553; makefile: 81; awk: 7
file content (42 lines) | stat: -rw-r--r-- 1,144 bytes parent folder | download | duplicates (8)
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/2 version, for emx+gcc compiler

#### Start of system configuration section. ####

CC = gcc -Zomf
CFLAGS = -I. -O2 -Wall
LDFLAGS = -s -Zcrtdll
LIBS = -ltermcap
O = obj

#### 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} -c ${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}  regexp.${O}

all:    less.exe lesskey.exe scrsize.exe

less.exe: ${OBJ}
	${CC} ${OBJ} -o $@ ${LDFLAGS} ${LIBS}

lesskey.exe: lesskey.${O} version.${O}
	${CC} lesskey.${O} version.${O} -o $@ ${LDFLAGS}

scrsize.exe: scrsize.c
	${CC} ${CFLAGS} -D__ST_MT_ERRNO__ -s -Zmtd -lX11 $<

${OBJ}: defines.h less.h

defines.h: defines.o2
	copy defines.o2 defines.h