TARGET = @targetname@ SRCS = rlm_eap.c eap.c mem.c state.c HEADERS = eap.h rlm_eap.h RLM_CFLAGS = $(INCLTDL) RLM_LIBS = $(shell for x in types/rlm_eap*/rlm_eap*.la;do echo -dlpreopen $$x;done) RLM_INSTALL = install-types RLM_SUBDIRS = @eaptypes@ $(STATIC_OBJS): $(HEADERS) # # Statically link MD5 and LEAP. They don't require any extra magic. # STATIC_OBJS += $(shell ls -1 types/rlm_eap_leap/rlm_eap_md5.a types/rlm_eap_md5/rlm_eap_leap.a 2>/dev/null) $(DYNAMIC_OBJS): $(HEADERS) all: @$(MAKE) $(MFLAGS) static dynamic @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common allclean: @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=clean common install-types: @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=install common common: @for dir in $(RLM_SUBDIRS); do \ echo "Making $(WHAT_TO_MAKE) in $$dir..."; \ (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\ done ## this uses the RLM_CFLAGS and RLM_LIBS and SRCS defs to make TARGET. include ../rules.mak