home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume26 / faucet / part01 / Makefile < prev    next >
Makefile  |  1993-01-29  |  1KB  |  45 lines

  1. #    faucet and hose: network pipe utilities
  2. #    Copyright (C) 1992 Robert Forsman
  3. #
  4. #    This program is free software; you can redistribute it and/or modify
  5. #    it under the terms of the GNU General Public License as published by
  6. #    the Free Software Foundation; either version 2 of the License, or
  7. #    (at your option) any later version.
  8. #
  9. #    This program is distributed in the hope that it will be useful,
  10. #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. #    GNU General Public License for more details.
  13. #
  14. #    You should have received a copy of the GNU General Public License
  15. #    along with this program; if not, write to the Free Software
  16. #    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #
  19. # under HPUX you will probably have to make using LDLIBS=-lBSD
  20. #
  21.  
  22. CFLAGS = 
  23.  
  24. FOBJS = faucet.o portname.o
  25. HOBJS = hose.o portname.o
  26. ALL =    faucet hose
  27.  
  28. all    : ${ALL}
  29.  
  30. faucet    : ${FOBJS}
  31.     ${CC} ${CFLAGS} -o $@ ${FOBJS} ${LDLIBS}
  32.  
  33. hose    : ${HOBJS}
  34.     ${CC} ${CFLAGS} -o $@ ${HOBJS} ${LDLIBS}
  35.  
  36. install : all
  37.     cp faucet hose ${HOME}/bin/`mach`
  38.  
  39. clean    :
  40.     rm -f ${FOBJS}  ${HOBJS}  ${ALL}
  41.     rm -f *.o *~ *.CKP *.BAK core a.out
  42.  
  43. spotless: clean
  44.     rm -f *~ core  hose faucet
  45.