home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / forut062.zip / ForUtil-0.62 / fflow / Makefile.orig < prev    next >
Makefile  |  1997-01-23  |  2KB  |  105 lines

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