actube/src/mod/Mod.mak
7u83@mail.ru 526c0da605 CAPWAP_CIPHER param in dtls.h
FossilOrigin-Name: b5f3bfdc91c2fcfe784060d61cdfb9bf399b1d253ec956a2bfd3ff0a44ea3734
2018-04-03 22:11:24 +00:00

55 lines
1.0 KiB
Makefile

include ../../Config.mak
-include ../../Config.local.mak
include ../../Macros.mak
OBJS:=$(patsubst %.o,$(OBJDIR)/%.o,$(OBJS))
#CFLAGS = -fPIC -Wall -g -O0 -D_REENTRANT -DWITH_IPV6 $(COMPDEFS) -DWITH_RMAC_SUPPORT
CFLAGS+= -I ../../ -I../ -I../../include
ifeq ($(SSL_LIBRARY),GNUTLS)
CFLAGS+=-DWITH_GNUTLS
endif
ifeq ($(SSL_LIBRARY),OPENSSL)
CFLAGS+=-DWITH_OPENSSL
endif
SRCS = $(OBJS:.o=.c)
all: $(SNAME) $(DNAME) $(MODNAME)
$(OBJDIR)/%.o:%.c
@mkdir -p $(OBJDIR)
@echo " $(CC) "$<
@$(CC) -c $(CFLAGS) $< -o $@
$(SNAME) : $(OBJS) $(MODOBJS)
@mkdir -p $(LIBARCHDIR)
@echo " $(AR) $(SNAME)"
@$(AR) rcs $(SNAME) $(OBJS) $(MODOBJS)
$(DNAME) : $(OBJS) $(MODOBJS)
@mkdir -p $(LIBARCHDIR)
@echo " $(CC) $(DNAME)"
@$(LD) -L$(LIBARCHDIR) $(LDFLAGS) -shared -o $(DNAME) $(OBJS) $(MODOBJS) $(SLIBS) $(LIBS)
$(MODNAME) : $(DNAME)
cp $(DNAME) $(MODNAME)
# $(CC) -L$(LIBARCHDIR) $(OBJS) $(MODOBJS) $(SLIBS) -v -shared -o ../../../lib/actube/capwap.so
clean:
rm -rf $(OBJDIR)
rm -f $(SNAME)
rm -f $(DNAME)
rm -f $(MODNAME)