diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-05-09 14:20:58 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-09 14:20:58 -0400 |
commit | 5fd83771641d15c418f747bd343ba6738d3875f7 (patch) | |
tree | 5abf0f78f680d9837dbd93d4d4c3933bb7509599 /text_cmds/ee/make.default | |
download | apple_cmds-5fd83771641d15c418f747bd343ba6738d3875f7.tar.gz apple_cmds-5fd83771641d15c418f747bd343ba6738d3875f7.tar.zst apple_cmds-5fd83771641d15c418f747bd343ba6738d3875f7.zip |
Import macOS userland
adv_cmds-176
basic_cmds-55
bootstrap_cmds-116.100.1
developer_cmds-66
diskdev_cmds-667.40.1
doc_cmds-53.60.1
file_cmds-321.40.3
mail_cmds-35
misc_cmds-34
network_cmds-606.40.1
patch_cmds-17
remote_cmds-63
shell_cmds-216.60.1
system_cmds-880.60.2
text_cmds-106
Diffstat (limited to 'text_cmds/ee/make.default')
-rw-r--r-- | text_cmds/ee/make.default | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/text_cmds/ee/make.default b/text_cmds/ee/make.default new file mode 100644 index 0000000..32ff05d --- /dev/null +++ b/text_cmds/ee/make.default @@ -0,0 +1,57 @@ +# This is the make file for ee, the "easy editor". +# +# If building ee using curses, type "make curses", otherwise new_curse (a +# subset of curses that supports ee) will be built and ee will use new_curse +# instead of curses. +# +# The "install" target ("make install") will copy the ee binary to +# the /usr/local/bin directory on the local system. The man page (ee.1) +# will be copied into the /usr/local/man/man1 directory. +# +# The "clean" target ("make clean") will remove the ee and new_curse.o +# object files, and the ee binary. +# +# If the system does not have localization routines, use the -DNO_CATGETS +# define. If the system supports setlocale(), catopen(), and catgets() and +# localization is desired, do not use -DNO_CATGETS. +# +# DEFINES is used for new_curse.c, and CFLAGS is used for ee.c. +# + +# for System V, using new_curse with terminfo +DEFINES = -DSYS5 -DNCURSE + +# for BSD, using new_curse with termcap +#DEFINES = -DCAP -DNCURSE + +# for BSD systems with select(), using new_curse with termcap, use: +#DEFINES = -DCAP -DNCURSE -DBSD_SELECT + +# flags for compilation +CFLAGS = -s -DNO_CATGETS + +# For Sun systems, remove the '#' from the front of the next two lines: +#DEFINES = -DSYS5 -DNCURSE +#CFLAGS = -I/usr/5include -L/usr/5lib -DNO_CATGETS -s + +all : ee + +curses : ee.c + cc ee.c -o ee $(CFLAGS) -lcurses + +ee : ee.o new_curse.o + cc -o ee ee.o new_curse.o $(CFLAGS) + +ee.o : ee.c new_curse.h + cc -c ee.c $(DEFINES) $(CFLAGS) + +new_curse.o : new_curse.c new_curse.h + cc new_curse.c -c $(DEFINES) $(CFLAGS) + +install : + cp ee /usr/local/bin/ee + cp ee.1 /usr/local/man/man1/ee.1 + +clean : + rm -f ee.o new_curse.o ee + |