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

  1. #
  2. # $Header: /usr/local/rcs/ForUtil/Commons/RCS/Makefile.in,v 1.1 1996/08/07 21:10:47 koen Exp koen $
  3. #
  4. # Makefile.in for the ForUtil common utilities
  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 -lgdbm
  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 = scan_commons.c get_common.c list_commons.c 
  48.  
  49. OBJS = scan_commons.o get_common.o list_commons.o 
  50.  
  51. ALLSRC= $(SRCS) lib_commons.c
  52.  
  53. ALLOBJ= $(OBJS) lib_commons.o
  54.  
  55. TARGETS= get_common list_commons scan_commons
  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. list_commons:: lib_commons.o list_commons.o
  79.     $(RM) $@ \ 
  80.     $(CC) -o $@ $(LDFLAGS) list_commons.o lib_commons.o $(LIBS) 
  81.  
  82. get_common:: lib_commons.o get_common.o
  83.     $(RM) $@ \ 
  84.     $(CC) -o $@ $(LDFLAGS) get_common.o lib_commons.o $(LIBS) 
  85.  
  86. scan_commons:: lib_commons.o scan_commons.o 
  87.     $(RM) $@ \ 
  88.     $(CC) -o $@ $(LDFLAGS) scan_commons.o lib_commons.o $(LIBS) $(LEXLIB)
  89.  
  90. install:: $(TARGETS)
  91.     $(install) $(bininst_flags) scan_commons $(bindir)
  92.     $(install) $(bininst_flags) list_commons $(bindir)
  93.     $(install) $(bininst_flags) get_common   $(bindir)
  94.  
  95. uninstall::
  96.     $(RM) $(bindir)/get_common
  97.     $(RM) $(bindir)/list_commons
  98.     $(RM) $(bindir)/scan_commons
  99.  
  100. depend: $(ALLSRC) 
  101.     $(DEPEND) $(ALL_CPPFLAGS) $(ALLSRC)
  102.  
  103. mostlyclean:
  104.     $(RM) $(ALLOBJ)
  105.     $(RM) *.bak *.out core a.out 
  106.  
  107. clean:: mostlyclean 
  108.     $(RM) $(TARGETS) 
  109.  
  110. distclean: clean
  111.     $(RM) Makefile 
  112.  
  113. #dependencies
  114. scan_commons.c: scan_commons.l
  115.  
  116.