CC = @CC@ CFLAGS = @CFLAGS@ @SLANG_DLL_CFLAGS@ LDFLAGS = @LDFLAGS@ SLANG_INC = @SLANG_INC@ SLANG_LIB = @SLANG_LIB@ -lslang MISCLIBS = @TERMCAP@ RPATH = @RPATH@ #----------------------------------------------------------------------------- # Location where object files are placed (Absolute path) #----------------------------------------------------------------------------- SRCDIR = @CONFIG_DIR@/src OBJDIR = @CONFIG_DIR@/src/$(ARCH)objs #---------------------------------------------------------------------------- # 5. Install location #---------------------------------------------------------------------------- INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ DESTDIR = prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ BIN_DIR = $(prefix)/bin MAN_DIR = $(datarootdir)/man DOC_DIR = $(datarootdir)/doc/most SYS_INITFILE = @sysconfdir@/most.conf MKINSDIR = ../autoconf/mkinsdir.sh DOC_FILES = ../doc/most.txt ../README ../doc/most-fun.txt ../doc/lesskeys.rc ../doc/most.rc ../changes.txt #---------------------------------------------------------------------------- # Nothing below here should require changing. #---------------------------------------------------------------------------- DEST_DOCDIR = $(DESTDIR)$(DOC_DIR) DEST_MANDIR = $(DESTDIR)$(MAN_DIR) DEST_BINDIR = $(DESTDIR)$(BIN_DIR) # SHELL = /bin/sh OBJS = @PROGRAM_OBJECTS@ OFILES = @PROGRAM_OFILES@ EXEC = most CONFIG_H = config.h INCS = $(SLANG_INC) ALL_CFLAGS = $(CFLAGS) -Dunix $(INCS) EXECLIBS = $(RPATH) $(SLANG_LIB) $(MISCLIBS) -lm # most_O_DEP = $(SRCDIR)/version.h UPDATE_VERSION_SCRIPT = $(HOME)/bin/update_changes_version COMPILE_CMD = $(CC) -c $(ALL_CFLAGS) -DMOST_SYSTEM_INITFILE='"$(SYS_INITFILE)"' # all: $(EXEC) $(EXEC): $(OBJDIR) $(CONFIG_H) slangversion $(OBJDIR)/$(EXEC) @echo $(EXEC) created in $(OBJDIR) $(OBJDIR)/$(EXEC): $(OBJS) cd $(OBJDIR); $(CC) $(OFILES) -o $(EXEC) $(LDFLAGS) $(EXECLIBS) # $(OBJDIR): -mkdir $(OBJDIR) # $(CONFIG_H) : $(SRCDIR)/sysconf.h /bin/cp $(SRCDIR)/sysconf.h $(CONFIG_H) # slangversion: $(OBJDIR)/chkslang $(OBJDIR)/chkslang $(EXEC) 20000 # $(OBJDIR)/chkslang: $(OBJDIR)/chkslang.o $(CC) $(OBJDIR)/chkslang.o -o $(OBJDIR)/chkslang $(LDFLAGS) $(EXECLIBS) # $(SRCDIR)/version.h: $(SRCDIR)/../changes.txt if [ -x $(UPDATE_VERSION_SCRIPT) ]; then \ $(UPDATE_VERSION_SCRIPT) $(SRCDIR)/../changes.txt $(SRCDIR)/version.h; \ fi # clean: /bin/rm -f $(OBJDIR)/* *~ distclean: clean /bin/rm -rf $(OBJDIR) Makefile sysconf.h installdirs: $(MKINSDIR) $(DEST_DOCDIR) $(MKINSDIR) $(DEST_MANDIR)/man1 $(MKINSDIR) $(DEST_BINDIR) install: all installdirs $(INSTALL) -s $(OBJDIR)/most $(DEST_BINDIR) $(INSTALL_DATA) ../doc/most.1 $(DEST_MANDIR)/man1 @for i in $(DOC_FILES); \ do \ echo $(INSTALL_DATA) $$i $(DEST_DOCDIR)/; \ $(INSTALL_DATA) $$i $(DEST_DOCDIR)/; \ if [ "$$?" != "0" ]; then \ exit 1; \ fi; \ done # The symlinks target is for my own private use. It simply creates the object # directory as a symbolic link to a local disk instead of an NFS mounted one. symlinks: -/bin/rm -f $(ARCH)objs mkdir -p $(HOME)/sys/$(ARCH)/objs/most/src ln -s $(HOME)/sys/$(ARCH)/objs/most/src $(ARCH)objs #--------------------------------------------------------------------------- # Rules (automatically generated) #---------------------------------------------------------------------------