home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3593 / Makefile < prev    next >
Makefile  |  1991-07-07  |  962b  |  47 lines

  1.  
  2.  
  3. SOURCES   = aux.c handlers.c raw.c voc.c au.c sb.c sf.c libst.c misc.c
  4.  
  5. HEADERS   = aux.h libst.h sfheader.h patchlevel.h 
  6.  
  7. TESTS     = tests monkey.au monkey.voc
  8.  
  9. FILES     = README NOTES TODO Makefile $(SOURCES) $(HEADERS) $(TESTS) 
  10.  
  11. SOUNDLIB  = libaux.a
  12. LIBOBJS   = handlers.o raw.o voc.o au.o sb.o sf.o libst.o misc.o
  13.  
  14. # SYSTEM V 386 parameters, salt to taste
  15.  
  16. CFLAGS    = -g -DSYSV
  17. CC        = cc
  18. AR        = ar r
  19. RANLIB    = ar ts
  20.  
  21. all: aux
  22.  
  23. aux: aux.o $(SOUNDLIB)
  24.     $(CC) $(CFLAGS) -o aux aux.o $(SOUNDLIB)
  25.  
  26. $(SOUNDLIB): $(LIBOBJS)
  27.     rm -f $(SOUNDLIB)
  28.     $(AR) $(SOUNDLIB) $(LIBOBJS)
  29.     $(RANLIB) $(SOUNDLIB)
  30.  
  31. aux.o:        aux.c aux.h
  32. handlers.o:    handlers.c aux.h
  33. raw.o:        raw.c aux.h
  34. voc.o:        voc.c aux.h
  35. misc.o:        misc.c aux.h
  36.  
  37. clean:
  38.     rm -f *.o
  39.     rm -f *.raw
  40.     rm -f *.sf
  41.  
  42. # Shar: -F (prefix all lines with X), 
  43. #    -M (notice monkey.voc is binary and uuencode)
  44. #     -s addr (set return addr of poster)
  45. shar:
  46.     @/usr2/tools/shar/shar -M -F -s thinman@netcom.com $(FILES)
  47.