1192830Sed# This is the make file for ee, the "easy editor".
2192830Sed#
3192830Sed# If building ee using curses, type "make curses", otherwise new_curse (a 
4192830Sed# subset of curses that supports ee) will be built and ee will use new_curse 
5192830Sed# instead of curses.
6192830Sed#
7192830Sed# The "install" target ("make install") will copy the ee binary to 
8192830Sed# the /usr/local/bin directory on the local system.  The man page (ee.1) 
9192830Sed# will be copied into the /usr/local/man/man1 directory.
10192830Sed#
11192830Sed# The "clean" target ("make clean") will remove the ee and new_curse.o 
12192830Sed# object files, and the ee binary.
13192830Sed#
14192830Sed# If the system does not have localization routines, use the -DNO_CATGETS
15192830Sed# define.  If the system supports setlocale(), catopen(), and catgets() and 
16192830Sed# localization is desired, do not use -DNO_CATGETS.
17192830Sed#
18192830Sed# DEFINES is used for new_curse.c, and CFLAGS is used for ee.c.
19192830Sed#
20192830Sed
21192830Sed# for System V, using new_curse with terminfo
22192830SedDEFINES =	-DSYS5 -DNCURSE 
23192830Sed
24192830Sed# for BSD, using new_curse with termcap
25192830Sed#DEFINES = 	-DCAP -DNCURSE 
26192830Sed
27192830Sed# for BSD systems with select(), using new_curse with termcap, use:
28192830Sed#DEFINES =      -DCAP -DNCURSE -DBSD_SELECT 
29192830Sed
30192830Sed# flags for compilation
31192830SedCFLAGS = -s -DNO_CATGETS
32192830Sed
33192830Sed# For Sun systems, remove the '#' from the front of the next two lines:
34192830Sed#DEFINES = -DSYS5 -DNCURSE 
35192830Sed#CFLAGS  = -I/usr/5include -L/usr/5lib -DNO_CATGETS -s
36192830Sed
37192830Sedall :	ee
38192830Sed
39192830Sedcurses :	ee.c
40192830Sed	cc ee.c -o ee $(CFLAGS) -lcurses 
41192830Sed
42192830Sedee :	ee.o new_curse.o
43192830Sed	cc -o ee ee.o new_curse.o $(CFLAGS) 
44192830Sed
45192830Sedee.o :	ee.c new_curse.h
46192830Sed	cc -c ee.c $(DEFINES) $(CFLAGS) 
47192830Sed
48192830Sednew_curse.o :	new_curse.c new_curse.h
49192830Sed	cc new_curse.c -c $(DEFINES) $(CFLAGS)
50192830Sed
51192830Sedinstall :
52192830Sed	cp ee /usr/local/bin/ee
53192830Sed	cp ee.1 /usr/local/man/man1/ee.1
54192830Sed
55192830Sedclean :
56192830Sed	rm -f ee.o new_curse.o ee 
57192830Sed
58