@$(MAKE) $(MFLAGS) radeapclient
radeapclient: radeapclient.o ../../lib/libradius.la
- (cd libeap && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1
+ (cd libeap && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit $?
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) ${RLM_CFLAGS} $(LDFLAGS) -o radeapclient radeapclient.o -static $(CLIENTLIBS) $(LIBS) $(LCRYPT)
radeapclient.o: radeapclient.c $(INCLUDES)
common:
@for dir in $(RLM_SUBDIRS); do \
echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
- (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
+ (cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit $?;\
done
## this uses the RLM_CFLAGS and RLM_LIBS and SRCS defs to make TARGET.
install:
$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
+# List tls first, other modules depend on it
common:
- # List tls first, other modules depend on it
@for mod in rlm_eap_tls rlm_eap*; do \
what=$(WHAT_TO_MAKE); \
[ "$$what" = "all" ] && what="$(TARGET_LIBS)"; \
if [ -d $$mod ] && [ -f $$mod/Makefile ]; then \
echo "Making $$what in $$mod..."; \
- (cd $$mod && $(MAKE) $(MFLAGS) $$what) || exit 1; \
+ (cd $$mod && $(MAKE) $(MFLAGS) $$what) || exit $?; \
fi; \
done