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