home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / src / mingw-runtime-19991107 / w32api / Makefile.in < prev    next >
Encoding:
Makefile  |  1999-08-02  |  2.3 KB  |  125 lines

  1. #
  2. #    Makefile.in
  3. #
  4. #    This file is part of a free library for the Win32 API.
  5. #    This library is distributed in the hope that it will be useful,
  6. #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8.  
  9. # start config section
  10.  
  11. SHELL = @SHELL@
  12.  
  13. srcdir = @srcdir@
  14. VPATH = @srcdir@
  15.  
  16. target_alias = @target_alias@
  17. prefix = @prefix@
  18.  
  19. program_transform_name = @program_transform_name@
  20. exec_prefix = @exec_prefix@
  21. bindir = @bindir@
  22. libdir = @libdir@
  23. tooldir = $(exec_prefix)/$(target_alias)
  24. datadir = @datadir@
  25. infodir = @infodir@
  26. includedir = @includedir@
  27.  
  28. CC = @CC@
  29. CC_FOR_TARGET = $(CC)
  30. CFLAGS = @CFLAGS@
  31.  
  32. DLLTOOL = @DLLTOOL@
  33. AS = @AS@
  34. AS_FOR_TARGET = $(AS_FOR_TARGET)
  35. WINDRES = @WINDRES@
  36.  
  37. RANLIB = @RANLIB@
  38. AR = @AR@
  39. LD = @LD@
  40.  
  41. TAR = tar
  42.  
  43. FLAGS_TO_PASS = \
  44.     AS="$(AS)" \
  45.     CC="$(CC)" \
  46.     CPPFLAGS="$(CPPFLAGS)" \
  47.     CFLAGS="$(CFLAGS)" \
  48.     CXXFLAGS="$(CXXFLAGS)" \
  49.     AR="$(AR)" \
  50.     RANLIB="$(RANLIB)" \
  51.     LD="$(LD)" \
  52.     DLLTOOL="$(DLLTOOL)" \
  53.     WINDRES="$(WINDRES)"
  54.  
  55. # end config section
  56.  
  57. SUBDIRS = lib
  58.  
  59. PACKAGE = w32api
  60. VERSION = 0.2
  61.  
  62. DIST_FILES = Makefile.in configure.in configure config.guess config.sub \
  63. install-sh README ChangeLog TODO
  64.  
  65. all: lib
  66.  
  67. %-subdirs:
  68.     for i in $(SUBDIRS); do \
  69.       $(MAKE) $(FLAGS_TO_PASS) -C $$i $*; \
  70.     done
  71.  
  72. lib:
  73.     $(MAKE) $(FLAGS_TO_PASS) -C $@
  74.  
  75. test:
  76.     $(MAKE) -C lib test $(FLAGS_TO_PASS)
  77.  
  78. install uninstall:
  79.     for i in $(SUBDIRS); do \
  80.         (cd $$i; $(MAKE) $@); \
  81.     done
  82.  
  83. distdir = $(PACKAGE)-$(VERSION)
  84.  
  85. dist:
  86.     rm -rf $(distdir)
  87.     mkdir $(distdir)
  88.     chmod 755 $(distdir)
  89.     for i in $(DIST_FILES); do \
  90.         cp -p $(srcdir)/$$i $(distdir)/$$i ; \
  91.     done
  92.     for i in $(SUBDIRS); do \
  93.         (cd $$i; $(MAKE) distdir=../$(distdir) dist); \
  94.     done
  95.     rm -f $(distdir).tar.gz
  96.     $(TAR) czf $(distdir).tar.gz $(distdir)
  97.  
  98. bindist:
  99.     rm -rf $(distdir)
  100.     mkdir $(distdir)
  101.     chmod 755 $(distdir)
  102.     $(MAKE) install prefix=../$(distdir)
  103.     cd $(distdir); $(TAR) czf ../$(distdir)b.tar.gz .
  104.  
  105. Makefile: Makefile.in config.status configure
  106.     $(SHELL) config.status
  107.  
  108. mostlyclean-top:
  109.     rm -f *~
  110. clean-top:
  111.     rm -rf $(distdir)
  112. maintainer-clean-top:
  113.  
  114. mostlyclean: mostlyclean-top mostlyclean-subdirs
  115. clean: mostlyclean-top clean-subdirs
  116. distclean: clean-top
  117.     rm -f Makefile config.status config.log config.cache TAGS *~
  118.     rm -f include/*~
  119.     rm -f $(distdir)*.tar.gz
  120.     $(MAKE) -C lib distclean
  121. maintainer-clean: maintainer-clean-subdirs
  122.  
  123. .PHONY: lib test
  124.