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