1*72fcea8cSEd Schouten# This is the make file for ee, the "easy editor". 2*72fcea8cSEd Schouten# 3*72fcea8cSEd Schouten# If building ee using curses, type "make curses", otherwise new_curse (a 4*72fcea8cSEd Schouten# subset of curses that supports ee) will be built and ee will use new_curse 5*72fcea8cSEd Schouten# instead of curses. 6*72fcea8cSEd Schouten# 7*72fcea8cSEd Schouten# The "install" target ("make install") will copy the ee binary to 8*72fcea8cSEd Schouten# the /usr/local/bin directory on the local system. The man page (ee.1) 9*72fcea8cSEd Schouten# will be copied into the /usr/local/man/man1 directory. 10*72fcea8cSEd Schouten# 11*72fcea8cSEd Schouten# The "clean" target ("make clean") will remove the ee and new_curse.o 12*72fcea8cSEd Schouten# object files, and the ee binary. 13*72fcea8cSEd Schouten# 14*72fcea8cSEd Schouten# If the system does not have localization routines, use the -DNO_CATGETS 15*72fcea8cSEd Schouten# define. If the system supports setlocale(), catopen(), and catgets() and 16*72fcea8cSEd Schouten# localization is desired, do not use -DNO_CATGETS. 17*72fcea8cSEd Schouten# 18*72fcea8cSEd Schouten# DEFINES is used for new_curse.c, and CFLAGS is used for ee.c. 19*72fcea8cSEd Schouten# 20*72fcea8cSEd Schouten 21*72fcea8cSEd Schouten# for System V, using new_curse with terminfo 22*72fcea8cSEd SchoutenDEFINES = -DSYS5 -DNCURSE 23*72fcea8cSEd Schouten 24*72fcea8cSEd Schouten# for BSD, using new_curse with termcap 25*72fcea8cSEd Schouten#DEFINES = -DCAP -DNCURSE 26*72fcea8cSEd Schouten 27*72fcea8cSEd Schouten# for BSD systems with select(), using new_curse with termcap, use: 28*72fcea8cSEd Schouten#DEFINES = -DCAP -DNCURSE -DBSD_SELECT 29*72fcea8cSEd Schouten 30*72fcea8cSEd Schouten# flags for compilation 31*72fcea8cSEd SchoutenCFLAGS = -s -DNO_CATGETS 32*72fcea8cSEd Schouten 33*72fcea8cSEd Schouten# For Sun systems, remove the '#' from the front of the next two lines: 34*72fcea8cSEd Schouten#DEFINES = -DSYS5 -DNCURSE 35*72fcea8cSEd Schouten#CFLAGS = -I/usr/5include -L/usr/5lib -DNO_CATGETS -s 36*72fcea8cSEd Schouten 37*72fcea8cSEd Schoutenall : ee 38*72fcea8cSEd Schouten 39*72fcea8cSEd Schoutencurses : ee.c 40*72fcea8cSEd Schouten cc ee.c -o ee $(CFLAGS) -lcurses 41*72fcea8cSEd Schouten 42*72fcea8cSEd Schoutenee : ee.o new_curse.o 43*72fcea8cSEd Schouten cc -o ee ee.o new_curse.o $(CFLAGS) 44*72fcea8cSEd Schouten 45*72fcea8cSEd Schoutenee.o : ee.c new_curse.h 46*72fcea8cSEd Schouten cc -c ee.c $(DEFINES) $(CFLAGS) 47*72fcea8cSEd Schouten 48*72fcea8cSEd Schoutennew_curse.o : new_curse.c new_curse.h 49*72fcea8cSEd Schouten cc new_curse.c -c $(DEFINES) $(CFLAGS) 50*72fcea8cSEd Schouten 51*72fcea8cSEd Schouteninstall : 52*72fcea8cSEd Schouten cp ee /usr/local/bin/ee 53*72fcea8cSEd Schouten cp ee.1 /usr/local/man/man1/ee.1 54*72fcea8cSEd Schouten 55*72fcea8cSEd Schoutenclean : 56*72fcea8cSEd Schouten rm -f ee.o new_curse.o ee 57*72fcea8cSEd Schouten 58