1 # This is the make file for ee, the "easy editor".
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
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.
11 # The "clean" target ("make clean") will remove the ee and new_curse.o
12 # object files, and the ee binary.
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.
18 # DEFINES is used for new_curse.c, and CFLAGS is used for ee.c.
21 # for System V, using new_curse with terminfo
22 DEFINES = -DSYS5 -DNCURSE
24 # for BSD, using new_curse with termcap
25 #DEFINES = -DCAP -DNCURSE
27 # for BSD systems with select(), using new_curse with termcap, use:
28 #DEFINES = -DCAP -DNCURSE -DBSD_SELECT
30 # flags for compilation
31 CFLAGS = -s -DNO_CATGETS
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
40 cc ee.c -o ee $(CFLAGS) -lcurses
43 cc -o ee ee.o new_curse.o $(CFLAGS)
45 ee.o : ee.c new_curse.h
46 cc -c ee.c $(DEFINES) $(CFLAGS)
48 new_curse.o : new_curse.c new_curse.h
49 cc new_curse.c -c $(DEFINES) $(CFLAGS)
52 cp ee /usr/local/bin/ee
53 cp ee.1 /usr/local/man/man1/ee.1
56 rm -f ee.o new_curse.o ee