scsh-ldap/c/Makefile.am

20 lines
601 B
Makefile

INCLUDES = -I@top_srcdir@/c -I@top_srcdir@/ffi-tools -I@scsh_includes@
SCSH= @SCSH@
GENERATED_CODE= ldap-consts.c
SCHEME_DIR= ../scheme
FFITOOLS_DIR= ../ffi-tools
CLEANFILES= $(GENERATED_CODE)
libsys_LTLIBRARIES= libscshldap.la
libscshldap_la_SOURCES= ldap.c $(FFITOOLS_DIR)/ffi-tools.c $(GENERATED_CODE)
libscshldap_la_LDFLAGS= -avoid-version -module
libscshldap_la_DEPENDENCIES= $(GENERATED_CODE)
$(GENERATED_CODE):
$(SCSH) -lm $(FFITOOLS_DIR)/ffi-tools-package.scm \
-lm $(SCHEME_DIR)/ldap-constants.scm \
-o ldap-constants -c '(make-c-files command-line-arguments)' \
`pwd`