xref: /PHP-7.1/Zend/Makefile.am (revision 03f3b847)
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 \
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_builtin_functions.c zend_sprintf.c \
16	zend_ini.c zend_sort.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 zend_smart_str.c
22
23libZend_la_CFLAGS = -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1
24libZend_la_LDFLAGS =
25libZend_la_LIBADD = @ZEND_EXTRA_LIBS@
26
27# automake isn't too clever about "non-standard" use of lex and yacc
28
29$(libZend_la_OBJECTS): zend_language_parser.h
30
31zend_ini_scanner.lo: zend_ini_parser.h
32
33# Language parser/scanner rules
34
35zend_language_scanner.c: $(srcdir)/zend_language_scanner.l
36	$(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt $(srcdir)/zend_language_scanner_defs.h -o$@ $(srcdir)/zend_language_scanner.l
37
38zend_language_parser.h: zend_language_parser.c
39zend_language_parser.c: $(srcdir)/zend_language_parser.y
40	$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o zend_language_parser.c
41
42# INI parser/scanner rules
43
44zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
45	$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o zend_ini_parser.c
46
47zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
48	$(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt $(srcdir)/zend_ini_scanner_defs.h -o$@ $(srcdir)/zend_ini_scanner.l
49
50zend_ini_parser.h: zend_ini_parser.c
51
52depend:
53
54zend_execute.lo: $(srcdir)/zend_execute.c
55	$(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(INLINE_CFLAGS) -c $(srcdir)/zend_execute.c
56