home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / forut062.zip / ForUtil-0.62 / ftags / Makefile < prev    next >
Makefile  |  1996-11-11  |  2KB  |  106 lines

  1. # Generated automatically from Makefile.in by configure.
  2. #
  3. # $Header: /usr/local/rcs/ForUtil/ftags/RCS/Makefile.in,v 1.1 1996/08/07 21:15:21 koen Exp koen $
  4. #
  5. # Makefile.in for the ForUtil ftags 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. EXE = .exe
  25. CC = gcc
  26. CFLAGS= -s -O
  27. CPPFLAGS=
  28. LDFLAGS= -s
  29.  
  30. LIBS= -L. -L../lib $(LOADLIBES) -lforUtil
  31.  
  32. DEFS = -DHAVE_CONFIG_H
  33.  
  34. ALL_INCLUDES= -I. -I../. -I../lib $(INCLUDES) 
  35. ALL_CPPFLAGS= $(CPPFLAGS) $(ALL_INCLUDES) $(DEFS)
  36.  
  37. RM = rm -f
  38. AR = ar crv
  39. RANLIB = ar srv
  40. DEPEND = gccmakedep
  41.  
  42. LEX = flex
  43. LEXFLAGS = -i
  44. LEXLIB= -lfl
  45.  
  46. # Installation program
  47. install=.././install-sh -c
  48.  
  49. SRCS = ftags.c 
  50.  
  51. OBJS = ftags.o
  52.  
  53. ALLSRC = $(SRCS)
  54.  
  55. ALLOBJ = $(OBJS)
  56.  
  57. TARGETS= ftags$(EXE)
  58.  
  59. #### End of Configuration section
  60.  
  61. #### Start of Compilation rules 
  62.  
  63. #rule to create .o files from .c files 
  64. .c.o:
  65.     $(RM) $@
  66.     $(CC) $(CFLAGS) $(ALL_CPPFLAGS) -c $< -o $@
  67.  
  68. #rule to create .c files from .l files
  69. .l.c:
  70.     $(RM) $@ 
  71.     $(LEX) $(LEXFLAGS) $<
  72.     mv lex.yy.c $@
  73.  
  74. #### End of Compilation Rules
  75.  
  76. #### Start of possible targets
  77.  
  78. all:: $(TARGETS) 
  79.  
  80. ftags$(EXE):: $(OBJS)
  81.     $(RM) $@ \ 
  82.     $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) $(LEXLIB)
  83.  
  84. install:: $(TARGETS)
  85.     $(install) $(bininst_flags) ftags $(bindir)
  86.  
  87. uninstall::
  88.     $(RM) $(bindir)/ftags
  89.  
  90. depend: $(ALLSRC) 
  91.     $(DEPEND) $(ALL_CPPFLAGS) $(ALLSRC)
  92.  
  93. mostlyclean:
  94.     $(RM) $(ALLOBJ)
  95.     $(RM) *.bak *.out core a.out 
  96.  
  97. clean:: mostlyclean 
  98.     $(RM) $(TARGETS) 
  99.  
  100. distclean: clean
  101.     $(RM) Makefile 
  102.  
  103. #dependencies
  104. ftags.c: ftags.l
  105.  
  106.