2019-05-14 04:21:35 +00:00
|
|
|
AUTOMAKE_OPTIONS = nostdinc
|
|
|
|
|
2020-11-15 09:56:06 +00:00
|
|
|
CPPFLAGS_COMMON = \
|
2019-05-14 04:21:35 +00:00
|
|
|
-I$(abs_builddir) \
|
|
|
|
-I$(abs_builddir)/../lib \
|
|
|
|
-I$(abs_srcdir) \
|
|
|
|
-I$(abs_srcdir)/../lib \
|
|
|
|
-I$(includedir)
|
|
|
|
|
2020-11-15 09:56:06 +00:00
|
|
|
#### $(LTDLINCL)
|
|
|
|
|
|
|
|
CFLAGS_COMMON =
|
|
|
|
LDFLAGS_COMMON = -L$(abs_builddir)/../lib -L$(libdir)
|
|
|
|
LIBADD_COMMON =
|
2019-05-14 04:21:35 +00:00
|
|
|
|
|
|
|
##################################################
|
|
|
|
# MAIN LIBRARY
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
if ENABLE_LIBLTDL
|
2020-11-15 09:56:06 +00:00
|
|
|
LIBADD_COMMON += $(LTDL_LIBS)
|
2019-05-14 04:21:35 +00:00
|
|
|
else
|
2020-11-15 09:56:06 +00:00
|
|
|
LIBADD_COMMON += $(DL_LIBS)
|
2019-05-14 04:21:35 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
bin_PROGRAMS = hcl
|
|
|
|
hcl_SOURCES = main.c ../lib/cb-impl.h ../lib/cb-impl.c
|
2020-11-15 09:56:06 +00:00
|
|
|
hcl_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
hcl_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
hcl_LDADD = -lhcl $(LIBADD_COMMON)
|
2019-05-14 04:21:35 +00:00
|
|
|
hcl_DEPENDENCIES = ../lib/libhcl.la
|
|
|
|
|
2019-06-02 05:06:08 +00:00
|
|
|
if ENABLE_HCLX
|
2019-05-14 04:21:35 +00:00
|
|
|
|
2019-05-31 10:54:13 +00:00
|
|
|
## cb-impl.c is included in libhclx.
|
2019-05-14 04:21:35 +00:00
|
|
|
## so ../lib/cb-impl.h and ../lib/cb-impl.c are not listed as sources
|
|
|
|
|
|
|
|
bin_PROGRAMS += hcls
|
|
|
|
hcls_SOURCES = main-s.c
|
2020-11-15 09:56:06 +00:00
|
|
|
hcls_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
hcls_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
hcls_LDADD = -lhclx $(LIBADD_COMMON)
|
2019-05-31 10:54:13 +00:00
|
|
|
hcls_DEPENDENCIES = ../lib/libhclx.la
|
2019-05-14 04:21:35 +00:00
|
|
|
|
|
|
|
bin_PROGRAMS += hclc
|
|
|
|
hclc_SOURCES = main-c.c
|
2020-11-15 09:56:06 +00:00
|
|
|
hclc_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
hclc_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
hclc_LDADD = -lhclx $(LIBADD_COMMON)
|
2019-05-31 10:54:13 +00:00
|
|
|
hclc_DEPENDENCIES = ../lib/libhclx.la
|
2019-05-14 04:21:35 +00:00
|
|
|
|
|
|
|
bin_PROGRAMS += hclj
|
|
|
|
hclj_SOURCES = main-j.c
|
2020-11-15 09:56:06 +00:00
|
|
|
hclj_CPPFLAGS = $(CPPFLAGS_COMMON)
|
|
|
|
hclj_LDFLAGS = $(LDFLAGS_COMMON)
|
|
|
|
hclj_LDADD = -lhclx $(LIBADD_COMMON)
|
2019-05-31 10:54:13 +00:00
|
|
|
hclj_DEPENDENCIES = ../lib/libhclx.la
|
2019-05-14 04:21:35 +00:00
|
|
|
endif
|