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

  1. # Generated automatically from Makefile.in by configure.
  2. #
  3. # $Header: /usr/local/rcs/ForUtil/lib/RCS/Makefile.in,v 1.1 1996/08/07 21:16:49 koen Exp koen $
  4. #
  5. # Makefile.in for the ForUtil library
  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 -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. # Installation program
  43. install=.././install-sh -c
  44.  
  45. SRCS = stringutil.c filelist.c environment.c SplitPath.c alloca.c
  46.  
  47. HEADERS = forutil.h sysdeps.h memmacros.h
  48.  
  49. OBJS = stringutil.o filelist.o environment.o SplitPath.o 
  50.  
  51. ALLSRC= $(SRCS)
  52.  
  53. ALLOBJ= $(OBJS)
  54.  
  55. TARGETS= forUtil.a
  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. forUtil.a:: $(OBJS)
  79.     $(RM) $@ \ 
  80.     $(AR) $@ $(OBJS)
  81.     $(RANLIB) $@
  82.  
  83. install:
  84. .PHONY: install
  85.  
  86. uninstall:
  87. .PHONY: uninstall
  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.