u-isdn/isdn_3/Makefile

26 lines
562 B
Makefile

TOPDIR=..
include $(TOPDIR)/Make.config
PSOURCES := isdn_3.c $(addsuffix .c,$(PROTOCOLS))
ifneq ($(strip $(filter capi, $(PROTOCOLS))),)
PCOMMON=1
endif
ifneq ($(strip $(filter phone, $(PROTOCOLS))),)
ifneq ($(strip $(filter euro, $(SUBPROTOCOLS))),)
PSOURCES += prot_ETS.c
endif
ifneq ($(strip $(filter german, $(SUBPROTOCOLS))),)
PSOURCES += prot_1TR6_1.c
PCOMMON=1
endif
endif
ifeq ($(PCOMMON),1)
PSOURCES += prot_1TR6_common.c
endif
EXTRA_CFLAGS=$(addsuffix _,$(addprefix -D_,$(PROTOCOLS) $(SUBPROTOCOLS)))
LIB = ../isdn_3.a
include $(TOPDIR)/Make.rules