diff options
| author | Xin LI <delphij@FreeBSD.org> | 2009-05-08 23:34:35 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2009-05-08 23:34:35 +0000 |
| commit | ad5f463cf975eb6a9c4cb335fc2ce7a84c7d49a7 (patch) | |
| tree | 2526f6b109843b646672c1537476dc51e56c0454 /Makefile.o2e | |
| parent | 33a9f6ab73c5cd49f65ba4389ec32216bbe5fee3 (diff) | |
Notes
Diffstat (limited to 'Makefile.o2e')
| -rw-r--r-- | Makefile.o2e | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Makefile.o2e b/Makefile.o2e new file mode 100644 index 0000000000000..b0b9db288371a --- /dev/null +++ b/Makefile.o2e @@ -0,0 +1,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 |
