home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume2 / cshar3 / Makefile next >
Encoding:
Makefile  |  1986-11-30  |  608 b   |  27 lines

  1.  
  2. # make this getopt.o if on a BSD or other non system V
  3. GETOPT=
  4.  
  5. CFLAGS=-O
  6.  
  7. all:    traverse shar
  8.  
  9. shar:    shar.o traverse.o $(GETOPT)
  10.     $(CC) -o shar shar.o traverse.o $(GETOPT)
  11.  
  12. traverse:
  13.     $(CC) $(CFLAGS) -o traverse -DSTANDALONE traverse.c
  14.  
  15. install:    all
  16.     /etc/install -f /usr/bin shar
  17.     /etc/install -f /usr/bin traverse
  18.     strip /usr/bin/shar /usr/bin/traverse
  19.     cp shar.1 /usr/man/u_man/man1/shar.1
  20.     cp traverse.3 /usr/man/p_man/man3/traverse.3
  21.  
  22. clean:
  23.     rm -f shar traverse *.o
  24.  
  25. shar.shar: Makefile shar.c traverse.c shar.1 traverse.3
  26.     shar -a -d EOF_SHAR Makefile shar.c traverse.c shar.1 traverse.3 > shar.shar
  27.