home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / NN / _NN-NNTP.TAR / usr / lib / nn / src / Makefile < prev    next >
Encoding:
Makefile  |  1994-09-13  |  1.7 KB  |  92 lines

  1. #
  2. # Makefile for nn release 6.4
  3. #
  4. # Specify your favourite compiler, preprocessor, and compiler flags:
  5. #
  6. # Some alternatives for CPP might be /lib/cpp and $(CC) -P
  7. # Common values for CFLAGS are '-O -s' or '-g'
  8. #
  9.  
  10. CC =        gcc
  11. CPP =        $(CC) -E
  12. CFLAGS =    -O2 
  13. LDFLAGS =    -s
  14. MAKE =        make
  15.  
  16. #
  17. # Before compiling, read the instructions in the file INSTALLATION!
  18. # -----------------------------------------------------------------
  19. #
  20. #    make all    compile programs
  21. #    make clean    remove all make'd files from source directory
  22. #
  23. # no changes are needed below this line
  24. #
  25.  
  26. SHELL = /bin/sh
  27.  
  28. all: ymakefile
  29.     $(MAKE) $(MFLAGS) -f ymakefile all
  30.  
  31. touch: ymakefile
  32.     $(MAKE) -f ymakefile -t all
  33.  
  34. dbg: ymakefile
  35.     $(MAKE) $(MFLAGS) -f ymakefile nn1
  36.  
  37. nn: ymakefile
  38.     $(MAKE) $(MFLAGS) -f ymakefile nn
  39.  
  40. master: ymakefile
  41.     $(MAKE) $(MFLAGS) -f ymakefile master
  42.  
  43. lint: ymakefile
  44.     $(MAKE) -f ymakefile lint
  45.  
  46. client: ymakefile
  47.     $(MAKE) $(MFLAGS) -f ymakefile client
  48.  
  49. ymakefile: Makefile xmakefile config.h
  50.     cp xmakefile MF.c
  51.     $(CPP) -DCOMPILER="$(CC)" -DPREPROC="$(CPP)" \
  52.            -DLDEBUG="$(LDFLAGS)" \
  53.            -DCDEBUG="$(CFLAGS)" -Iconf MF.c | \
  54.     sed -e '1,/MAKE WILL CUT HERE/d' \
  55.         -e '/^#/d' \
  56.         -e '/^[ \f    ]$$/d' \
  57.         -e '/^[ \/]*[*]/d' | \
  58.     sed -n -e '/^..*$$/p' > ymakefile
  59.     rm -f MF.c
  60.  
  61. #
  62. # clean up
  63. #    Will remove object and executeable files.
  64. #
  65.  
  66. clean:    ymakefile
  67.     make -f ymakefile clean
  68.     rm -f *.o *~ ymakefile
  69.  
  70. #
  71. # distribution
  72. #
  73.  
  74. distrib: man/nn.1.D
  75.     [ -d DIST ] || mkdir DIST
  76.     rm DIST/Part.*
  77.     makekit -m -k30 -s55000 -nDIST/Part.
  78.  
  79. tar: man/nn.1.D
  80.     chmod +x FILES
  81.     rm -f /tmp/nn64tar*
  82.     tar cf /tmp/nn64tar `FILES`
  83.     cd /tmp && compress nn64tar
  84.  
  85. split: tar
  86.     rm -f /tmp/nn64z*
  87.     cd /tmp && bsplit -b40000 -pnn64z -v < nn64tar.Z
  88.  
  89. man/nn.1.D: man/nn.1
  90.     sh SPLITNN1
  91.     
  92.