]> mj.ucw.cz Git - subauth.git/blob - Makefile
830d7ecf5fcdf3449401ddc808be5b829da56314
[subauth.git] / Makefile
1 # The default target
2 all: runtree programs configs
3
4 # Include configuration
5 s=.
6 -include obj/config.mk
7 obj/config.mk:
8         @echo "You need to run configure first." && false
9
10 # Do not show strange errors if the BUILDSYS is not set
11 # (it happens if noone called configure as reported above)
12 ifdef BUILDSYS
13
14 # We will use the libucw build system
15 include $(BUILDSYS)/Maketop
16
17 EXTRA_RUNDIRS=run
18
19 # Add the detected flags to all the global flags
20 CFLAGS+=$(LIBUCW_CFLAGS) $(LIBUCW_JSON_CFLAGS)
21 LIBS+=$(LIBUCW_LIBS) $(LIBUCW_JSON_LIBS)
22
23 include $(s)/server/Makefile
24 include $(s)/client/Makefile
25 include $(s)/pam/Makefile
26
27 # And finally the default rules of the build system
28 include $(BUILDSYS)/Makebottom
29
30 endif