"Fossies" - the Fresh Open Source Software Archive

Member "ncompress-5.0/Makefile.def" (2 Feb 2021, 1992 Bytes) of package /linux/privat/ncompress-5.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Modula2 source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.def": 4.2.4.6_vs_5.0.

    1 # Makefile generated by build.
    2 
    3 # C compiler
    4 #CC=cc
    5 
    6 # Install prefix
    7 DESTDIR=
    8 
    9 # Base install directory
   10 PREFIX=/usr/local
   11 
   12 # Install directory for binaries
   13 BINDIR=$(PREFIX)/bin
   14 
   15 # Install directory for manual
   16 MANDIR=$(PREFIX)/share/man/man1
   17 
   18 # compiler options:
   19 # options is a collection of:
   20 #
   21 #   -DAMIGA=1                   Amiga support.
   22 #   -DLSTAT=1                   Use lstat for finding symlinks.
   23 #   -DUTIME_H=1                 Use utime.h
   24 #   -DUSERMEM=<size>            Available memory for compress (default 800k).
   25 #   -DIBUFSIZ=<size>            Input buffer size (default BUFSIZ).
   26 #   -DOBUFSIZ=<size>            Output buffer size (default BUFSIZ)
   27 #   -DBYTEORDER=<order>         Byte order (default: unknown).
   28 #   -DMAXSEG_64K=1 -BITS=16     Support segment processor like 80286.
   29 #
   30 options= $(CFLAGS) $(CPPFLAGS) -DUSERMEM=800000
   31 
   32 # library options
   33 LBOPT= $(LDFLAGS)
   34 
   35 
   36 compress:   Makefile compress.c patchlevel.h
   37     $(CC) -o compress $(options) compress.c $(LBOPT)
   38 
   39 install_core:   compress
   40         [ -f $(DESTDIR)$(BINDIR)/compress ] && \
   41             { rm -f $(DESTDIR)$(BINDIR)/compress.old ; \
   42             mv $(DESTDIR)$(BINDIR)/compress $(DESTDIR)$(BINDIR)/compress.old ; } || :
   43         rm -f $(DESTDIR)$(BINDIR)/uncompress $(DESTDIR)$(BINDIR)/zcat
   44         mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
   45         cp compress $(DESTDIR)$(BINDIR)/compress
   46         rm -f $(DESTDIR)$(BINDIR)/uncompress
   47         ln $(DESTDIR)$(BINDIR)/compress $(DESTDIR)$(BINDIR)/uncompress
   48         cp compress.1 uncompress.1 $(DESTDIR)$(MANDIR)/.
   49         chmod 0644 $(DESTDIR)$(MANDIR)/compress.1 $(DESTDIR)$(MANDIR)/uncompress.1
   50 
   51 install_extra: install_core
   52         mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
   53         rm -f $(DESTDIR)$(BINDIR)/zcat
   54         ln -f $(DESTDIR)$(BINDIR)/compress $(DESTDIR)$(BINDIR)/zcat
   55         cp zcmp zdiff zmore $(DESTDIR)$(BINDIR)/.
   56         chmod 0755 $(DESTDIR)$(BINDIR)/compress $(DESTDIR)$(BINDIR)/zcmp $(DESTDIR)$(BINDIR)/zdiff $(DESTDIR)$(BINDIR)/zmore
   57         cp zcmp.1 zmore.1 $(DESTDIR)$(MANDIR)/.
   58         chmod 0644 $(DESTDIR)$(MANDIR)/zcmp.1 $(DESTDIR)$(MANDIR)/zmore.1
   59 
   60 install: install_extra
   61 
   62 cleanup:
   63         rm -f compress compress.def comp.log