home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume22 / archie / part01 / Makefile < prev    next >
Makefile  |  1991-08-21  |  2KB  |  78 lines

  1. #
  2. # Last changed: 08/20/91, v1.1
  3. #
  4. # Makefile for the minimal build for an archie Prospero client.
  5.  
  6. # Your C compiler:
  7. CC=cc
  8.  
  9. # For most systems, these OPTIONS will suffice.  Exceptions:
  10. #
  11. #    * If you're on a Stardent, add -43
  12. #    * If you're running EP/IX, you may need to add -systype bsd43 ..try
  13. #      it without it first, though.
  14.  
  15. OPTIONS= -O -I. # -43    -systype bsd43
  16.  
  17. # For this, DEFINES is usually empty.  Exceptions:
  18. #
  19. #     * if you're on a system running A/UX, add              -DAUX
  20. #     * if you're running AIX (e.g. RS/6000), add          -DAIX
  21. #     * if your system doesn't have the functions index(),
  22. #       rindex(), bcopy(), or bzero(), add                    -DFUNCS
  23. #     * if your system doesn't have the re_comp or re_exec
  24. #       routines (no regex(3) library), then add              -DNOREGEX
  25. #     * if your system is lacking strspn(), add               -DSTRSPN
  26. #     * if you want to include the debugging code (so you
  27. #       can help with problem-solving if any crop up), add    -DDEBUG
  28.  
  29. DEFINES= -DDEBUG
  30.  
  31. #    Usually LDFLAGS is empty; if, after you build this, archie
  32. #     complains that it can't resolve ARCHIE.MCGILL.CA, you need
  33. #     to uncomment `-lresolv'.
  34.  
  35. LDFLAGS= # -lresolv
  36.  
  37. # Change this if necessary.
  38.  
  39. RM=/bin/rm
  40.  
  41. # =========================
  42. # Yer' done....make archie.
  43. # =========================
  44. #
  45. CFLAGS=$(OPTIONS) $(DEFINES)
  46. #
  47. OBJS=    aquery.o archie.o atalloc.o dirsend.o get_pauth.o get_vdir.o \
  48.     p_err_text.o procquery.o ptalloc.o stcopy.o support.o \
  49.     vlalloc.o vl_comp.o
  50. #
  51. all: archie
  52.  
  53. archie: $(OBJS)
  54.     $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
  55.  
  56. $(OBJS): archie.h pmachine.h pcompat.h Makefile
  57.  
  58. clean:
  59.     $(RM) -f *.o archie gmon.out
  60.  
  61. gclean: clean
  62.     $(RM) -f *~ archie.0* archie.tar*
  63.  
  64. #unx:
  65. #    -unifdef -UXARCHIE xprocquery.c > procquery.c
  66.  
  67. FILES=    INSTALL Bugs Makefile Prospero README archie.c archie.h \
  68.     archie.man aquery.c atalloc.c dirsend.c get_pauth.c \
  69.     get_vdir.c p_err_text.c patchlevel.h pauthent.h pcompat.h perrno.h \
  70.     pfs.h pmachine.h pprot.h procquery.c ptalloc.c rdgram.h regex.c \
  71.     stcopy.c support.c uw-copyright.h vl_comp.c vlalloc.c
  72.  
  73. shar:
  74.     makekit -narchie. $(FILES) > Manifest
  75.  
  76. tar:
  77.     ( cd .. ; tar cvf archie/archie.tar `echo $(FILES) | tr ' ' '\012' | sed -e "s/^/archie\//g"` )
  78.