home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / mxterm.zip / mxterm / Imakefile < prev    next >
Makefile  |  1992-10-18  |  4KB  |  101 lines

  1. /**/###########################################################################
  2. /**/#                                                                         #
  3. /**/#                         Attention mxterm porters                         #
  4. /**/#                                                                         #
  5. /**/#                                                                         #
  6. /**/# Xterm assumes that bcopy can handle overlapping arguments.  If your     #
  7. /**/# bcopy (or memcpy) can't, write a routine called bcopy and link it in    #
  8. /**/# or add -Dbcopy=mybcopy to the DEFINES list below.                       #
  9. /**/#                                                                         #
  10. /**/###########################################################################
  11.  
  12. #ifdef BandAidCompiler
  13. #include BandAidCompiler
  14. #endif
  15.  
  16. /*
  17.  * add -DWTMP and -DLASTLOG if you want them; make sure that bcopy can
  18.  * handle overlapping copies before using it.
  19.  */
  20. #ifdef SetTtyGroup            /* turn on in config/machine.cf */
  21.    TTYGROUPDEF = -DUSE_TTY_GROUP
  22. #endif
  23. /*
  24.  *    [PUCC = Purdue University Computer Center]
  25.  *    If you use PUCC's ptyd, add "-DPUCC_PTYD" to the DEFINES
  26.  *    and dink the -DUTMP (also don't define WTMP or LASTLOG - since
  27.  *    ptyd does all that logging for you)  You will need to add
  28.  *    the right library load line (we use -lpucc) to the 
  29.  *    ComplexProgramTarget (right next to -ltermcap)
  30.  */
  31. #ifdef UsePUCCPtyd            /* turn on in config/site.def */
  32.     PUCCPTYDDEF = -DPUCC_PTYD        /* does not need to be setuid */
  33.          PTYLIB = -lpucc
  34. #endif
  35.  
  36. /*
  37.  * Motif -
  38.  *  I'm not sure if this is the correct thing to do. 
  39.  *  I'm still baffled with imake stuff.
  40.  */
  41.  
  42.        DEPXMLIB = $(USRLIBDIR)/libXm.a
  43.           XMLIB = -lXm
  44.  
  45.        DEPXMULIB = $(USRLIBDIR)/libXmu.a
  46.           XMULIB = -lXmu
  47.  
  48.         DEFINES = -DMOTIF
  49.  
  50.    MAIN_DEFINES = -DUTMP $(TTYGROUPDEF) $(PUCCPTYDDEF) -DWTMP -DLASTLOG -D__KERNEL_BUSTED__TIOCNOTTY_MAKES_PROC_GROUP_LEADER__
  51.    MISC_DEFINES = /* -DALLOWLOGFILEEXEC */
  52.  
  53.           SRCS1 = button.c charproc.c cursor.c data.c input.c \
  54.           main.c menu.c misc.c screen.c scrollbar.c tabs.c \
  55.           TekPrsTbl.c Tekproc.c util.c VTPrsTbl.c
  56.           OBJS1 = main.o input.o charproc.o cursor.o util.o tabs.o \
  57.           screen.o scrollbar.o button.o Tekproc.o misc.o \
  58.           VTPrsTbl.o TekPrsTbl.o data.o menu.o
  59.           SRCS2 = resize.c
  60.           OBJS2 = resize.o
  61.            SRCS = $(SRCS1) $(SRCS2)
  62.            OBJS = $(OBJS1) $(OBJS2)
  63.        PROGRAMS = resize mxterm
  64.        DEPLIBS = XmClientDepLibs
  65.        PROGRAMS = mxterm resize
  66.  
  67. #ifndef TermcapLibrary
  68. #if SystemV && !defined(MacIIArchitecture)
  69. #ifdef CrayArchitecture
  70. #define TermcapLibrary -lcurses        /* special case of system v */
  71. #else
  72. #define TermcapLibrary -ltermlib    /* usually in here */
  73. #endif
  74. #else
  75. #define TermcapLibrary -ltermcap    /* bsd puts it here */
  76. #endif
  77. #endif
  78.  
  79.      TERMCAPLIB = TermcapLibrary
  80.  
  81. AllTarget($(PROGRAMS))
  82.  
  83. SpecialObjectRule(main.o, ,$(MAIN_DEFINES))
  84. SpecialObjectRule(misc.o, ,$(MISC_DEFINES))
  85. SpecialObjectRule(charproc.o, ,$(MISC_DEFINES))
  86.  
  87. /*
  88. NormalProgramTarget(mxterm,$(OBJS1),$(DEPLIBS1),XawClientLibs,$(TERMCAPLIB) $(PTYLIB))
  89. */
  90. NormalProgramTarget(mxterm,$(OBJS1),$(DEPLIBS1),XmClientLibs,$(TERMCAPLIB) $(PTYLIB))
  91.  
  92. InstallProgramWithFlags(mxterm, $(BINDIR), $(INSTUIDFLAGS))
  93.  
  94. NormalProgramTarget(resize,$(OBJS2),$(DEPLIBS2), ,$(TERMCAPLIB))
  95. InstallProgramWithFlags(resize, $(BINDIR), )
  96.  
  97. InstallAppDefaults(XTerm)
  98. InstallManPage(mxterm,$(MANDIR))
  99. InstallManPage(resize,$(MANDIR))
  100. DependTarget()
  101.