############################################################################# # mined text editor makefile - EMX without curses; does not work ############################################################################# # Where and how to install # installation root, usually empty root = $(INSTALLROOT) # configuration of installation directories: # * [l]rundir refers to the "Mined runtime support library" - # it contains the online help file, auxiliary scripts (some of which # might actually be installed in .../bin, too), configuration samples etc. # * [l]docdir is optional and refers to the mined web documentation # (a copy of the mined home page). # directories for target "make install" prefix = $(root) bindir = $(prefix)/bin mandir = $(prefix)/bin rundir = $(prefix)/bin # directories for target "make localinstall" lprefix = $(root) lbindir = $(lprefix)/bin lmandir = $(lprefix)/bin lrundir = $(lprefix)/bin #INSTALL = install --mode=+r,u+w INSTALL = install -m 644 INSTALLBIN = install #INSTALL = /bin/cp -p #INSTALLBIN = /bin/cp -p ############################################################################# # compilation target options # terminal handling mode 1: termio SCREEN = -DTERMIO # link termcap functions: SLIB = -ltermcap # usual termcap library #SLIB = -L/usr/lib/termcap -ltermcap # if deprecated (Linux) #SLIB = -lcurses # may work on System V Unix too (Solaris) #SLIB = -lncurses # includes termcap library (Linux) # terminal handling mode 2: sgtty (old, BSD) #SCREEN = -DSGTTY #SLIB = -ltermcap # terminal handling mode 3: curses # Choose curses only if other options don't work (like for EMX) # (see COMPILE.DOC for discussion). # Use target "make minced" to use UTF-8 enabled ncurses (>= 5.4), # or see separate makefile.emx.curses for options with curses for EMX. # select operating system flavour (define sysV if on System V flavour) #SYSTEM = -Dunix -DsysV #SYSTEM = -Dunix -DsysV -DFDSET SYSTEM = -Dunix # select operating system environment DEFS = -Dunix -Dpc -D__GCC__ -D__pcgcc__ -DFORK -D__EMX__ # use -D__pcgcc__ to disable link() and define file protections as int # use -DFORK to disable vfork() # Application mode # -Zwin32 windows text mode application # -Zrsx32 dual mode (also DOS with DPMI) # -lrsxioapp window application (with -Zwin32) MODE = -Zrsx32 #MODE = -Zrsx32 -Zsmall-conv -lmalloc1 # with curses #MODE = -Zwin32 -lrsxioapp # window mode # collection of system parameters for compilation SYSFLAGS = $(SCREEN) $(SYSTEM) $(DEFS) ############################################################################# # link options # link dynamically LDOPTS= # -d n links statically GLDOPTS= # -static links statically ############################################################################# # compiler selection and compiler-specific options # (source warnings, optimisation and debug) CC=gcc include mkinclud.cc ############################################################################# # make actions # default target: emx: mined.exe SCREENOBJ=io.o keyboard.o MOUSELIB= KEYMAPSDEP= KEYMAPS:= PROTOFLAGS:= include mkinclud.mak mined.exe: $(OBJS) $(SCREENOBJ) $(CC) $(OBJS) $(SCREENOBJ) $(SLIB) $(MODE) $(LINKOPTS) -o mined.exe # enable VT100/ANSI emulation: rsxntopt -b mined.exe -V ############################################################################# # end