Annotation of embedaddon/strongswan/src/charon-tkm/Makefile.am, revision 1.1.1.1

1.1       misho       1: SRC = $(abs_top_srcdir)/src
                      2: OBJ = $(abs_top_builddir)/src
                      3: 
                      4: AM_CPPFLAGS = \
                      5:        -include $(abs_top_builddir)/config.h \
                      6:        -I$(SRC)/libstrongswan \
                      7:        -I$(SRC)/libcharon
                      8: 
                      9: LIBLD = \
                     10:        -L$(OBJ)/libstrongswan/.libs \
                     11:        -L$(OBJ)/libcharon/.libs
                     12: LIBPT = $(OBJ)/libstrongswan/.libs:$(OBJ)/libcharon/.libs
                     13: LIBFL = -lstrongswan -lcharon
                     14: 
                     15: DEFS += -DPLUGINS=\""$(PLUGINS)\"" -DIPSEC_PIDDIR=\"${piddir}\"
                     16: 
                     17: BUILD_OPTS = \
                     18:        -XOBJ_DIR=$(abs_builddir)/obj \
                     19:        -cargs $(AM_CPPFLAGS) $(DEFS) \
                     20:        -largs $(LIBLD) $(LIBFL)
                     21: 
                     22: TEST_OPTS = \
                     23:        -cargs -DBUILDDIR=\"${abs_top_builddir}\" \
                     24:        -largs -L$(OBJ)/libstrongswan/tests/.libs -ltest
                     25: 
                     26: # plugins to enable
                     27: PLUGINS = \
                     28:        kernel-netlink \
                     29:        pem \
                     30:        socket-default \
                     31:        openssl \
                     32:        stroke
                     33: 
                     34: all: build_charon
                     35: 
                     36: build_charon: build_charon.gpr src/charon-tkm.c
                     37:        @$(GPRBUILD) -p $< $(BUILD_OPTS)
                     38: 
                     39: build_tests: build_tests.gpr
                     40:        @$(GPRBUILD) -p $< $(BUILD_OPTS) $(TEST_OPTS)
                     41: 
                     42: check-tkm: build_tests
                     43:        @LD_LIBRARY_PATH=$(LIBPT) obj/tests
                     44: 
                     45: check:
                     46:        @echo "TKM tests are not run automatically because they have to be run as root" >&2
                     47:        @echo "and require a properly configured TKM daemon to be running." >&2
                     48:        @echo "They can be run from '$(abs_builddir)' with 'make check-tkm'" >&2
                     49: 
                     50: install: build_charon
                     51:        $(INSTALL) -m 755 obj/charon-tkm $(DESTDIR)$(ipsecdir)
                     52: 
                     53: clean:
                     54:        rm -rf obj
                     55: 
                     56: EXTRA_DIST = build_charon.gpr build_common.gpr build_tests.gpr src tests

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>