2 all: runtree programs configs
4 # Include configuration
8 @echo "You need to run configure first." && false
10 # Do not show strange errors if the BUILDSYS is not set
11 # (it happens if noone called configure as reported above)
14 # We will use the libucw build system
15 include $(BUILDSYS)/Maketop
17 EXTRA_RUNDIRS=run share/man/man1 share/man/man8
19 # Add the detected flags to all the global flags
20 CFLAGS+=$(LIBUCW_CFLAGS) $(LIBUCW_JSON_CFLAGS)
21 LIBS+=$(LIBUCW_LIBS) $(LIBUCW_JSON_LIBS)
26 include $(s)/server/Makefile
27 include $(s)/client/Makefile
28 include $(s)/pam/Makefile
30 ifdef CONFIG_APACHE_MOD
31 include $(s)/apache/Makefile
34 # And finally the default rules of the build system
35 include $(BUILDSYS)/Makebottom
37 # Our own rules for building man pages. They are a little bit hacky
38 # as a2x cannot produce output in a different directory.
39 $(o)/%.1: $(s)/%.1.txt
42 $(Q)a2x -f manpage $@.txt
43 $(Q)$(call symlink,$@,run/share/man/man1)
45 $(o)/%.8: $(s)/%.8.txt
48 $(Q)a2x -f manpage $@.txt
49 $(Q)$(call symlink,$@,run/share/man/man8)