home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / lib / php / build / rules_common.mk < prev    next >
Encoding:
Text File  |  2001-03-06  |  2.4 KB  |  77 lines

  1. #  +----------------------------------------------------------------------+
  2. #  | PHP version 4.0                                                      |
  3. #  +----------------------------------------------------------------------+
  4. #  | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
  5. #  +----------------------------------------------------------------------+
  6. #  | This source file is subject to version 2.02 of the PHP license,      |
  7. #  | that is bundled with this package in the file LICENSE, and is        |
  8. #  | available at through the world-wide-web at                           |
  9. #  | http://www.php.net/license/2_02.txt.                                 |
  10. #  | If you did not receive a copy of the PHP license and are unable to   |
  11. #  | obtain it through the world-wide-web, please send a note to          |
  12. #  | license@php.net so we can mail you a copy immediately.               |
  13. #  +----------------------------------------------------------------------+
  14. #  | Authors: Sascha Schumann <sascha@schumann.cx>                        |
  15. #  +----------------------------------------------------------------------+
  16. #
  17. # $Id: rules_common.mk,v 1.5 2000/11/28 01:20:21 sas Exp $ 
  18. #
  19.  
  20. include $(top_builddir)/config_vars.mk
  21.  
  22. COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS)
  23. COMPILE      = $(CC)  $(COMMON_FLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
  24. CXX_COMPILE  = $(CXX) $(COMMON_FLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS)
  25.  
  26. SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(COMPILE) -c $< && touch $@
  27. CXX_SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(CXX_COMPILE) -c $< && touch $@
  28.  
  29. LINK = $(LIBTOOL) --mode=link $(COMPILE) $(LDFLAGS) -o $@
  30.  
  31. mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
  32. INSTALL = $(top_srcdir)/build/shtool install -c
  33. INSTALL_DATA = $(INSTALL) -m 644
  34.  
  35. DEFS = -I. -I$(srcdir) -I$(top_builddir)/main -I$(top_srcdir)
  36.  
  37. moduledir    = $(EXTENSION_DIR)
  38.  
  39. CXX_SUFFIX = .cpp
  40.  
  41. .SUFFIXES:
  42. .SUFFIXES: .slo .c $(CXX_SUFFIX) .lo .o .s .y .l
  43.  
  44. .c.o:
  45.     $(COMPILE) -c $<
  46.  
  47. $(CXX_SUFFIX).o:
  48.     $(CXX_COMPILE) -c $<
  49.  
  50. .s.o:
  51.     $(COMPILE) -c $<
  52.  
  53. .c.lo:
  54.     $(PHP_COMPILE)
  55.  
  56. $(CXX_SUFFIX).lo:
  57.     $(CXX_PHP_COMPILE)
  58.  
  59. .s.lo:
  60.     $(PHP_COMPILE)
  61.  
  62. .c.slo:
  63.     $(SHARED_COMPILE)
  64.  
  65. $(CXX_SUFFIX).slo:
  66.     $(CXX_SHARED_COMPILE)
  67.  
  68. .y.c:
  69.     $(YACC) $(YFLAGS) $< && mv y.tab.c $*.c
  70.     if test -f y.tab.h; then \
  71.     if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
  72.     else :; fi
  73.  
  74. .l.c:
  75.     $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
  76.  
  77.