# # Makefile # # Version: $Id$ # include ../Make.inc MFLAGS += --no-print-directory SUBDIRS = include lib modules main WHAT_TO_MAKE = all .PHONY: all clean install reconfig all: freeradius-devel @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common clean: @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common @rm -f include/*~ *~ install: @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common reconfig: @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common .PHONY: tests tests: @$(MAKE) -C tests tests .PHONY: common $(SUBDIRS) # # Ensure correct build order lib: include modules: lib main: modules common: $(SUBDIRS) $(SUBDIRS): @echo "Making $(WHAT_TO_MAKE) in $(X)src/$@..." @$(MAKE) $(MFLAGS) X=$(X)src/ -C $@ $(WHAT_TO_MAKE) freeradius-devel: ln -sf include freeradius-devel