home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega Top 1
/
os2_top1.zip
/
os2_top1
/
APPS
/
UTILS
/
H-O
/
LESS177
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1993-01-26
|
3KB
|
101 lines
# Makefile for "less"
# Generated Wed Jun 10 19:52:11 CDT 1992 by linstall.
#
# Invoked as:
# make all
# or make install
# Plain "make" is equivalent to "make all".
#
# If you add or delete functions, remake funcs.h by doing:
# make newfuncs
# This depends on the coding convention of function headers looking like:
# " \t public <function-type> \n <function-name> ( ... ) "
#
# Also provided:
# make lint # Runs "lint" on all the sources.
# make clean # Removes "less" and the .o files.
# make clobber # Pretty much the same as make "clean".
##########################################################################
# Compilation environment.
##########################################################################
# compiler
CC = gcc
# LIBS is the list of libraries needed.
LIBS = -ltermc
# OPTIM is passed to the compiler and the loader.
# It is normally "-O" but may be, for example, "-g".
OPTIM = -O3
DEFINES = -DOS2
CFLAGS = -Zomf -Zmt
LDLIBS =
##########################################################################
# Files
##########################################################################
SRC1 = ch.c cmdbuf.c command.c decode.c help.c input.c
SRC2 = line.c linenum.c edit.c option.c optfunc.c \
opttbl.c os.c
SRC3 = charset.c filename.c lsystem.c output.c position.c ifile.c \
brac.c forwback.c jump.c search.c main.c vecho.c glob.c
SRC4 = mark.c prompt.c screen.c signal.c tags.c ttyin.c version.c regex.c
SRC = $(SRC1) $(SRC2) $(SRC3) $(SRC4) scr.c
O = .obj
DEF = less.def
DEF2 = lesskey.def
OBJ = brac$O ch$O charset$O cmdbuf$O command$O decode$O edit$O filename$O \
forwback$O help$O input$O jump$O line$O linenum$O \
lsystem$O option$O optfunc$O opttbl$O os$O \
output$O position$O mark$O ifile$O prompt$O screen$O \
search$O signal$O tags$O ttyin$O version$O regex$O zfiles$O scr$O
OBJ2 = main$O glob$O
DEF = less.def
.SUFFIXES: .c $(O)
.c$(O):
$(CC) $(CFLAGS) $(OPTIM) $(DEFINES) -c $*.c
##########################################################################
# Rules for building stuff
##########################################################################
all: less.exe lesskey.exe
less.exe: $(OBJ) $(OBJ2)
$(CC) $(CFLAGS) -s -o less.exe $(OBJ) $(OBJ2) $(DEF) $(LIBS)
lesskey.exe: lesskey$O
$(CC) $(CFLAGS) -o lesskey.exe lesskey$O $(DEF2)
##########################################################################
# Dependencies
##########################################################################
$(OBJ) $(OBJ2): less.h funcs.h defines.h position.h regex.h
command$O decode$O: cmd.h
option$O opttbl$O optfunc$O: option.h
$(OBJ2): glob.h
lesskey$O: less.h funcs.h defines.h cmd.h