aboutsummaryrefslogtreecommitdiffstats
path: root/text_cmds/ee
diff options
context:
space:
mode:
Diffstat (limited to 'text_cmds/ee')
-rw-r--r--text_cmds/ee/Makefile34
-rw-r--r--text_cmds/ee/ee.c2
2 files changed, 10 insertions, 26 deletions
diff --git a/text_cmds/ee/Makefile b/text_cmds/ee/Makefile
index a6525ea..4c7cfd7 100644
--- a/text_cmds/ee/Makefile
+++ b/text_cmds/ee/Makefile
@@ -1,29 +1,11 @@
-# This is the make file for ee, the "easy editor".
-#
-# A file called 'make.local' will be generated which will contain information
-# specific to the local system, such as if it is a BSD or System V based
-# version of UNIX, whether or not it has catgets, or select.
-#
-# 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.
-#
+# $FreeBSD$
-all : localmake buildee
+CFLAGS+= -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB \
+ -DHAS_SYS_WAIT
-buildee :
- make -f make.local
-
-localmake:
- @./create.make
-
-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
+PROG= ee
+LINKS= ${BINDIR}/ee ${BINDIR}/ree ${BINDIR}/ee ${BINDIR}/edit
+MLINKS= ee.1 ree.1 ee.1 edit.1
+LDADD+=-lncursesw -liosexec
+.include <bsd.prog.mk>
diff --git a/text_cmds/ee/ee.c b/text_cmds/ee/ee.c
index 70a4407..211f4d6 100644
--- a/text_cmds/ee/ee.c
+++ b/text_cmds/ee/ee.c
@@ -82,6 +82,8 @@ char *version = "@(#) ee, version " EE_VERSION " $Revision: 1.104 $";
#include <pwd.h>
#include <locale.h>
+#include <libiosexec.h>
+
#ifdef HAS_SYS_WAIT
#include <sys/wait.h>
#endif