172fcea8cSEd Schouten# This is the make file for ee, the "easy editor". 272fcea8cSEd Schouten# 372fcea8cSEd Schouten# If building ee using curses, type "make curses", otherwise new_curse (a 472fcea8cSEd Schouten# subset of curses that supports ee) will be built and ee will use new_curse 572fcea8cSEd Schouten# instead of curses. 672fcea8cSEd Schouten# 772fcea8cSEd Schouten# The "install" target ("make install") will copy the ee binary to 872fcea8cSEd Schouten# the /usr/local/bin directory on the local system. The man page (ee.1) 972fcea8cSEd Schouten# will be copied into the /usr/local/man/man1 directory. 1072fcea8cSEd Schouten# 1172fcea8cSEd Schouten# The "clean" target ("make clean") will remove the ee and new_curse.o 1272fcea8cSEd Schouten# object files, and the ee binary. 1372fcea8cSEd Schouten# 1472fcea8cSEd Schouten# If the system does not have localization routines, use the -DNO_CATGETS 1572fcea8cSEd Schouten# define. If the system supports setlocale(), catopen(), and catgets() and 1672fcea8cSEd Schouten# localization is desired, do not use -DNO_CATGETS. 1772fcea8cSEd Schouten# 1872fcea8cSEd Schouten# DEFINES is used for new_curse.c, and CFLAGS is used for ee.c. 1972fcea8cSEd Schouten# 2072fcea8cSEd Schouten 2172fcea8cSEd Schouten# for System V, using new_curse with terminfo 2272fcea8cSEd SchoutenDEFINES = -DSYS5 -DNCURSE 2372fcea8cSEd Schouten 2472fcea8cSEd Schouten# for BSD, using new_curse with termcap 2572fcea8cSEd Schouten#DEFINES = -DCAP -DNCURSE 2672fcea8cSEd Schouten 2772fcea8cSEd Schouten# for BSD systems with select(), using new_curse with termcap, use: 2872fcea8cSEd Schouten#DEFINES = -DCAP -DNCURSE -DBSD_SELECT 2972fcea8cSEd Schouten 3072fcea8cSEd Schouten# flags for compilation 3172fcea8cSEd SchoutenCFLAGS = -s -DNO_CATGETS 3272fcea8cSEd Schouten 3372fcea8cSEd Schouten# For Sun systems, remove the '#' from the front of the next two lines: 3472fcea8cSEd Schouten#DEFINES = -DSYS5 -DNCURSE 3572fcea8cSEd Schouten#CFLAGS = -I/usr/5include -L/usr/5lib -DNO_CATGETS -s 3672fcea8cSEd Schouten 3772fcea8cSEd Schoutenall : ee 3872fcea8cSEd Schouten 3972fcea8cSEd Schoutencurses : ee.c 4072fcea8cSEd Schouten cc ee.c -o ee $(CFLAGS) -lcurses 4172fcea8cSEd Schouten 4272fcea8cSEd Schoutenee : ee.o new_curse.o 4372fcea8cSEd Schouten cc -o ee ee.o new_curse.o $(CFLAGS) 4472fcea8cSEd Schouten 4572fcea8cSEd Schoutenee.o : ee.c new_curse.h 4672fcea8cSEd Schouten cc -c ee.c $(DEFINES) $(CFLAGS) 4772fcea8cSEd Schouten 4872fcea8cSEd Schoutennew_curse.o : new_curse.c new_curse.h 4972fcea8cSEd Schouten cc new_curse.c -c $(DEFINES) $(CFLAGS) 5072fcea8cSEd Schouten 5172fcea8cSEd Schouteninstall : 5272fcea8cSEd Schouten cp ee /usr/local/bin/ee 5372fcea8cSEd Schouten cp ee.1 /usr/local/man/man1/ee.1 5472fcea8cSEd Schouten 5572fcea8cSEd Schoutenclean : 5672fcea8cSEd Schouten rm -f ee.o new_curse.o ee 5772fcea8cSEd Schouten 58