home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / forut062.zip / ForUtil-0.62 / commons / Makefile.os2 < prev    next >
Makefile  |  1997-02-02  |  3KB  |  118 lines

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