4 exec_prefix=@exec_prefix@
6 sysconfdir=@sysconfdir@
10 includedir=${prefix}/include
12 libdir=${exec_prefix}/lib
13 bindir=${exec_prefix}/bin
17 top_srcdir=@top_srcdir@
24 INSTANTIATE=${srcdir}/instantiate
26 LIBZEPHYR=${BUILDTOP}/lib/libzephyr.la
29 ALL_CFLAGS=${CFLAGS} -DDATADIR=\"${datadir}\" -I${top_srcdir}/h \
30 -I${BUILDTOP}/h -I${srcdir} -I. @X_CFLAGS@ ${CPPFLAGS}
32 LDFLAGS=@X_LIBS@ @LDFLAGS@
33 LIBS=${LIBZEPHYR} @LIBS@ -lcom_err @X_PRE_LIBS@ @ZWGC_LIBX11@ @X_EXTRA_LIBS@ \
34 @TLIB@ @REGEX_LIBS@ @ARES_LIBS@
36 OBJS= port_dictionary.o pointer_dictionary.o unsigned_long_dictionary.o \
37 string_dictionary.o int_dictionary.o string_dictionary_aux.o \
38 parser.o lexer.o node.o exec.o buffer.o main.o zephyr.o X_driver.o \
39 substitute.o port.o xshow.o mux.o eval.o subscriptions.o notice.o \
40 xcut.o regexp.o character_class.o text_operations.o file.o error.o \
41 variables.o formatter.o X_fonts.o X_gram.o tty_filter.o \
42 standard_ports.o xselect.o xmark.o xrevstack.o xerror.o \
43 new_string.o new_memory.o
47 zwgc: ${OBJS} ${LIBZEPHYR}
48 ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
50 port_dictionary.c port_dictionary.h: dictionary.c dictionary.h
51 ${INSTANTIATE} ${srcdir} dictionary port port.h
53 pointer_dictionary.c pointer_dictionary.h: dictionary.c dictionary.h
54 ${INSTANTIATE} ${srcdir} dictionary pointer pointer.h
56 unsigned_long_dictionary.c unsigned_long_dictionary.h: dictionary.c \
58 ${INSTANTIATE} ${srcdir} dictionary unsigned_long unsigned_long.h
60 string_dictionary.c string_dictionary.h: dictionary.c dictionary.h
61 ${INSTANTIATE} ${srcdir} dictionary string new_string.h
63 int_dictionary.c int_dictionary.h: dictionary.c dictionary.h
64 ${INSTANTIATE} ${srcdir} dictionary int
67 ${INSTANTIATE} ${srcdir} stack char
69 string_stack.h: stack.h
70 ${INSTANTIATE} ${srcdir} stack string
72 xmode_stack.h: stack.h
73 ${INSTANTIATE} ${srcdir} stack xmode
77 parser.o: y.tab.c y.tab.h
78 ${CC} -c ${ALL_CFLAGS} -o $@ y.tab.c
80 y.tab.c y.tab.h: parser.y
81 ${YACC} ${YFLAGS} ${srcdir}/parser.y
84 ${CC} -c ${ALL_CFLAGS} $<
89 ${LIBTOOL} --mode=install ${INSTALL} -m 755 zwgc ${DESTDIR}${bindir}
90 ${INSTALL} -m 644 ${srcdir}/zwgc.1 ${DESTDIR}${mandir}/man1
91 ${INSTALL} -m 644 ${srcdir}/zwgc.desc ${DESTDIR}${datadir}/zephyr
92 ${INSTALL} -m 644 ${srcdir}/zwgc_resources ${DESTDIR}${datadir}/zephyr
95 ${LIBTOOL} --mode=clean rm -f zwgc
96 rm -f ${OBJS} port_dictionary.[ch] pointer_dictionary.[ch]
97 rm -f unsigned_long_dictionary.[ch] string_dictionary.[ch]
98 rm -f int_dictionary.[ch] char_stack.h string_stack.h xmode_stack.h
101 ${OBJS}: ${top_srcdir}/h/sysdep.h ${BUILDTOP}/h/config.h
102 zephyr.o: ${BUILDTOP}/h/zephyr/zephyr.h ${BUILDTOP}/h/zephyr/zephyr_err.h
104 port_dictionary.o: port.h string_stack.h new_string.h new_memory.h
105 pointer_dictionary.o: pointer.h new_string.h new_memory.h
106 unsigned_long_dictionary.o: new_string.h new_memory.h
107 string_dictionary.o: new_string.h new_memory.h
108 int_dictionary.o: new_string.h new_memory.h
109 X_driver.o: X_driver.h new_memory.h formatter.h mux.h variables.h error.h
110 X_driver.o: X_gram.h xselect.h unsigned_long_dictionary.h
111 X_fonts.o: X_fonts.h new_memory.h new_string.h error.h pointer_dictionary.h
113 X_gram.o: X_gram.h xmark.h zwgc.h X_driver.h X_fonts.h error.h new_string.h
114 X_gram.o: xrevstack.h xerror.h xselect.h
116 buffer.o: new_memory.h buffer.h
117 character_class.o: character_class.h
118 display.o: new_memory.h new_string.h variables.h display.h
119 eval.o: new_memory.h node.h eval.h substitute.h port.h buffer.h regexp.h
120 eval.o: text_operations.h zwgc.h variables.h
121 exec.o: new_memory.h exec.h eval.h node.h buffer.h port.h variables.h notice.h
122 file.o: new_memory.h new_string.h error.h
123 formatter.o: new_memory.h char_stack.h string_dictionary.h formatter.h
124 formatter.o: text_operations.h
125 lexer.o: new_memory.h new_string.h int_dictionary.h lexer.h parser.h
126 main.o: new_memory.h zwgc.h parser.h node.h exec.h zephyr.h notice.h
127 main.o: subscriptions.h file.h mux.h port.h variables.h main.h
128 mux.o: mux.h error.h zwgc.h pointer.h
129 new_memory.o: new_memory.h int_dictionary.h
130 new_string.o: new_memory.h
131 node.o: new_memory.h node.h
132 notice.o: new_memory.h error.h variables.h notice.h
133 port.o: new_string.h port_dictionary.h port.h notice.h variables.h
135 standard_ports.o: new_memory.h port.h variables.h error.h main.h
136 string_dictionary_aux.o: new_memory.h string_dictionary.h
137 subscriptions.o: new_memory.h new_string.h int_dictionary.h zwgc.h
138 subscriptions.o: subscriptions.h error.h file.h main.h
139 substitute.o: new_memory.h lexer.h substitute.h
140 text_operations.o: new_memory.h text_operations.h char_stack.h
141 tty_filter.o: new_memory.h new_string.h string_dictionary_aux.h formatter.h
142 tty_filter.o: zwgc.h error.h
143 variables.o: new_memory.h notice.h string_dictionary_aux.h variables.h
144 xcut.o: new_memory.h new_string.h X_gram.h zwgc.h xselect.h xmark.h error.h
147 xmark.o: X_gram.h X_fonts.h xmark.h new_string.h
148 xrevstack.o: X_gram.h zwgc.h
149 xselect.o: new_string.h xselect.h
150 xshow.o: pointer_dictionary.h new_memory.h formatter.h variables.h zwgc.h
151 xshow.o: X_fonts.h X_gram.h xmode_stack.h
152 zephyr.o: new_string.h zephyr.h error.h mux.h subscriptions.h variables.h
153 zephyr.o: pointer.h X_driver.h
155 .PHONY: all check install clean