xref: /PHP-5.6/Zend/Makefile.am (revision 97bf2543)
1## Process this file with automake to produce Makefile.in -*- makefile -*-
2
3#CLEANFILES = zend_language_parser.c zend_language_parser.h zend_language_scanner.c zend_language_parser.output zend_ini_parser.c zend_ini_parser.h zend_ini_scanner.c zend_ini_parser.output
4
5AUTOMAKE_OPTIONS=foreign
6noinst_LTLIBRARIES=libZend.la
7
8libZend_la_SOURCES=\
9	zend_language_parser.y zend_language_scanner.l \
10	zend_ini_parser.y zend_ini_scanner.l \
11	zend_alloc.c zend_compile.c zend_constants.c zend_dynamic_array.c \
12	zend_execute.c zend_execute_API.c zend_highlight.c zend_llist.c \
13	zend_vm_opcodes.c zend_opcode.c zend_operators.c zend_ptr_stack.c zend_stack.c \
14	zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \
15	zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \
16	zend_ini.c zend_qsort.c zend_objects.c zend_object_handlers.c \
17	zend_objects_API.c zend_ts_hash.c zend_stream.c \
18	zend_default_classes.c \
19	zend_iterators.c zend_interfaces.c zend_exceptions.c \
20	zend_strtod.c zend_closures.c zend_float.c zend_string.c zend_signal.c \
21	zend_generators.c zend_virtual_cwd.c zend_ast.c
22
23libZend_la_LDFLAGS =
24libZend_la_LIBADD = @ZEND_EXTRA_LIBS@
25
26# automake isn't too clever about "non-standard" use of lex and yacc
27
28$(libZend_la_OBJECTS): zend_language_parser.h
29
30zend_ini_scanner.lo: zend_ini_parser.h
31
32# Language parser/scanner rules
33
34zend_language_scanner.c: $(srcdir)/zend_language_scanner.l
35	$(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt $(srcdir)/zend_language_scanner_defs.h -o$@ $(srcdir)/zend_language_scanner.l
36
37zend_language_parser.h: zend_language_parser.c
38zend_language_parser.c: $(srcdir)/zend_language_parser.y
39	$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o zend_language_parser.c
40
41# INI parser/scanner rules
42
43zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
44	$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o zend_ini_parser.c
45
46zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
47	$(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt $(srcdir)/zend_ini_scanner_defs.h -o$@ $(srcdir)/zend_ini_scanner.l
48
49zend_ini_parser.h: zend_ini_parser.c
50
51depend:
52
53zend_execute.lo: $(srcdir)/zend_execute.c
54	$(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(INLINE_CFLAGS) -c $(srcdir)/zend_execute.c
55
56