home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / forut062.zip / ForUtil-0.62 / fflow / Makefile.in < prev    next >
Makefile  |  1996-08-21  |  2KB  |  104 lines

  1. #
  2. # $Header: /usr/local/rcs/ForUtil/fflow/RCS/Makefile.in,v 1.1 1996/08/07 21:13:12 koen Exp koen $
  3. #
  4. # Makefile.in for the ForUtil fflow utility
  5. #
  6. # (C)Copyright 1995-1996 Ripley Software Development
  7. # All Rights Reserved
  8. #
  9. # This file is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program; if not, write to the Free Software
  21. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
  22.  
  23. CC = @CC@
  24. CFLAGS= -g
  25. CPPFLAGS=
  26. LDFLAGS=
  27.  
  28. LIBS= -L. -L../lib $(LOADLIBES) -lforUtil
  29.  
  30. DEFS = @DEFS@
  31.  
  32. ALL_INCLUDES= -I. -I../. -I../lib $(INCLUDES) 
  33. ALL_CPPFLAGS= $(CPPFLAGS) $(ALL_INCLUDES) $(DEFS)
  34.  
  35. RM = rm -f
  36. AR = ar crv
  37. RANLIB = @RANLIB@
  38. DEPEND = gccmakedep
  39.  
  40. LEX = @LEX@
  41. LEXFLAGS = -i
  42. LEXLIB= @LEXLIB@
  43.  
  44. # Installation program
  45. install=@INSTALL@
  46.  
  47. SRCS = fflow.c libflow.c
  48.  
  49. OBJS = fflow.o libflow.o
  50.  
  51. ALLSRC = $(SRCS)
  52.  
  53. ALLOBJ = $(OBJS)
  54.  
  55. TARGETS= fflow
  56.  
  57. #### End of Configuration section
  58.  
  59. #### Start of Compilation rules 
  60.  
  61. #rule to create .o files from .c files 
  62. .c.o:
  63.     $(RM) $@
  64.     $(CC) $(CFLAGS) $(ALL_CPPFLAGS) -c $< -o $@
  65.  
  66. #rule to create .c files from .l files
  67. .l.c:
  68.     $(RM) $@ 
  69.     $(LEX) $(LEXFLAGS) $<
  70.     mv lex.yy.c $@
  71.  
  72. #### End of Compilation Rules
  73.  
  74. #### Start of possible targets
  75.  
  76. all:: $(TARGETS) 
  77.  
  78. fflow:: $(OBJS)
  79.     $(RM) $@ \ 
  80.     $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) $(LEXLIB)
  81.  
  82. install:: $(TARGETS)
  83.     $(install) $(bininst_flags) fflow $(bindir)
  84.  
  85. uninstall::
  86.     $(RM) $(bindir)/fflow
  87.  
  88. depend: $(ALLSRC) 
  89.     $(DEPEND) $(ALL_CPPFLAGS) $(ALLSRC)
  90.  
  91. mostlyclean:
  92.     $(RM) $(ALLOBJ)
  93.     $(RM) *.bak *.out core a.out 
  94.  
  95. clean:: mostlyclean 
  96.     $(RM) $(TARGETS) 
  97.  
  98. distclean: clean
  99.     $(RM) Makefile 
  100.  
  101. #dependencies
  102. fflow.c: fflow.l
  103.  
  104.