home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / utree / part01 / sys / Makefile.M32 < prev    next >
Encoding:
Makefile  |  1992-09-06  |  1.7 KB  |  73 lines

  1. #
  2. #       Makefile for UTREE
  3. #       klin, Mon Feb 24 00:02:38 1992
  4. #
  5. #       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  6. #
  7. #       Version: PCS Cadmus 9600 (MC68020), MUNIX V3M3.2 (SYSV.3)
  8.  
  9. # Compiler flags, loader flags and libraries
  10. CFLAGS= -O
  11. MFLAGS= -fH
  12. LFLAGS=
  13. LIBS=   -lcurses_s
  14. MLIBS=  -lm
  15. # Additional local libraries
  16. LLIBS=  -lc_s -lbsd
  17.  
  18. # --------------------------------------------------------------------- #
  19.  
  20. # Some needed commands to create utree
  21. CC=     cc
  22. CP=     cp
  23. STRIP=  strip
  24.  
  25. # --------------------------------------------------------------------- #
  26.  
  27. # Utree executables
  28. UTREE=  ../bin/utree
  29. UTPRL=  ../bin/utree.prlist
  30.  
  31. # --------------------------------------------------------------------- #
  32.  
  33. # Utree header files
  34. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  35.  
  36. # Utree sources and objects
  37. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  38.     stat.c term.c tree.c util.c vars.c vers.c
  39. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  40.     stat.o term.o tree.o util.o vars.o vers.o
  41.  
  42. # --------------------------------------------------------------------- #
  43.  
  44. all:    utree utree.prlist
  45.  
  46. utree:  $(UTREE)
  47.  
  48. strip:  $(UTREE)
  49.     $(CP) $(UTREE) $(UTREE)+sym
  50.     $(STRIP) $(UTREE)
  51.  
  52. utree.prlist:   $(UTPRL)
  53.  
  54. # Compile and link utree
  55. $(UTREE):       $(OBJS)
  56.     $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  57.  
  58. # Compile and link utree.prlist
  59. $(UTPRL):       utree.prlist.c
  60.     $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  61.  
  62. # Clean up
  63. clean:
  64.     rm -f core *.o
  65.  
  66. # --------------------------------------------------------------------- #
  67.  
  68. $(OBJS):        $(DEFS)
  69.     $(CC) $(CFLAGS) -c $<
  70.  
  71. # --------------------------------------------------------------------- #
  72.  
  73.