TARGET = @targetname@
SRCS = x99_rlm.c x99_util.c x99_state.c x99_mac.c x99_sync.c
SRCS += x99_site.c x99_pwe.c x99_log.c x99_cardops.c
-HEADERS = x99.h x99_rad.h x99_sync.h x99_pwe.h
+HEADERS = x99.h x99_rad.h x99_sync.h x99_pwe.h x99_cardops.h
RLM_CFLAGS = @x99_token_cflags@ $(OPENSSL_INCLUDE)
-RLM_LIBS = @x99_token_ldflags@ $(OPENSSL_LIBS)
+RLM_LIBS = @x99_token_ldflags@ $(OPENSSL_LIBS) \
+ $(patsubst %.c,%.lo,$(wildcard cardops/*.c))
## this uses the RLM_CFLAGS and RLM_LIBS and SRCS defs to make TARGET.
include ../rules.mak
CFLAGS += -Wno-unused-label
-$(STATIC_OBJS): $(HEADERS)
+$(STATIC_OBJS): $(HEADERS) cardops/notused.la
-$(DYNAMIC_OBJS): $(HEADERS)
+$(DYNAMIC_OBJS): $(HEADERS) cardops/notused.la
+cardops/notused.la:
+ $(MAKE) $(MFLAGS) RLM_CFLAGS="$(RLM_CFLAGS)" -C cardops