2 @echo "include/config.h not present"
3 @echo "You need to rerun ./autogen.sh and ./configure"
6 $(srcdir)/version.h: $(srcdir)/VERSION
7 @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/
10 @$(SHELL) script/mkversion.sh VERSION $(srcdir)/version.h $(srcdir)/
13 @echo "Removing precompiled headers"
14 @-rm -f include/includes.h.gch
16 pch:: clean_pch include/includes.h.gch
19 @echo Removing objects
20 @-find . -name '*.o' -exec rm -f '{}' \;
21 @echo Removing hostcc objects
22 @-find . -name '*.ho' -exec rm -f '{}' \;
23 @echo Removing binaries
24 @-rm -f $(BIN_PROGS) $(SBIN_PROGS) $(BINARIES) $(TORTURE_PROGS)
25 @echo Removing libraries
26 @-rm -f $(STATIC_LIBRARIES) $(SHARED_LIBRARIES)
27 @-rm -f bin/static/*.a bin/shared/*.$(SHLIBEXT)
28 @echo Removing modules
29 @-rm -f bin/modules/*/*.$(SHLIBEXT)
30 @-rm -f bin/*_init_module.c
31 @echo Removing dummy targets
33 @echo Removing generated files
34 @-rm -f bin/*_init_module.c
36 @echo Removing proto headers
37 @-rm -f $(PROTO_HEADERS)
40 -rm -f include/config.h include/config_tmp.h include/build.h
43 -rm -f config.log config.cache
44 -rm -f config.pm config.mk
48 -rm -f *.bak *~ */*.bak */*~ */*/*.bak */*/*~ */*/*/*.bak */*/*/*~
50 realdistclean:: distclean removebackup
51 -rm -f include/config_tmp.h.in
59 $(srcdir)/script/find_unused_macros.pl `find . -name "*.[ch]"` | sort
61 ###############################################################################
63 ###############################################################################
65 .SUFFIXES: .x .c .et .y .l .d .o .h .h.gch .a .$(SHLIBEXT) .1 .1.xml .3 .3.xml .5 .5.xml .7 .7.xml .8 .8.xml .ho .idl .hd
68 @echo "Generating dependencies for $<"
72 @echo "Generating host-compiler dependencies for $<"
75 include/includes.d: include/includes.h
76 @echo "Generating dependencies for $<"
80 @if test -n "$(CC_CHECKER)"; then \
81 echo "Checking $< with '$(CC_CHECKER)'"; \
85 @-mkdir -p `dirname $@`
86 @$(COMPILE) && exit 0 ; \
87 echo "The following command failed:" 1>&2;\
88 echo "$(COMPILE)" 1>&2;\
89 $(COMPILE) >/dev/null 2>&1
92 @echo "Compiling $< with host compiler"
93 @-mkdir -p `dirname $@`
94 @$(HCOMPILE) && exit 0;\
95 echo "The following command failed:" 1>&2;\
96 echo "$(HCOMPILE)" 1>&2;\
97 $(HCOMPILE) >/dev/null 2>&1
100 @echo "Precompiling $<"
104 @echo "Building $< with $(YACC)"
105 @-$(srcdir)/script/yacc_compile.sh "$(YACC)" "$<" "$@"
108 @echo "Building $< with $(LEX)"
109 @-$(srcdir)/script/lex_compile.sh "$(LEX)" "$<" "$@"
111 DOCBOOK_MANPAGE_URL = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
114 $(XSLTPROC) -o $@ $(DOCBOOK_MANPAGE_URL) $<
117 $(XSLTPROC) -o $@ $(DOCBOOK_MANPAGE_URL) $<
120 $(XSLTPROC) -o $@ $(DOCBOOK_MANPAGE_URL) $<
123 $(XSLTPROC) -o $@ $(DOCBOOK_MANPAGE_URL) $<
126 $(XSLTPROC) -o $@ $(DOCBOOK_MANPAGE_URL) $<
128 DEP_FILES = $(patsubst %.ho,%.hd,$(patsubst %.o,%.d,$(ALL_OBJS))) \
131 dist:: idl_full manpages configure distclean