qse/cmd/awk/Makefile.am

35 lines
902 B
Makefile

AUTOMAKE_OPTIONS = nostdinc
AM_CPPFLAGS = \
-I$(top_builddir)/include \
-I$(top_srcdir)/include \
$(LTDLINCL)
if WIN32
# you must adjust the value of DEFAULT_MODPOSTFIX according to
# -version-info in ../../lib/awk/Makefile.am
AM_CPPFLAGS += -DDEFAULT_MODPREFIX=\"libqseawk-\" -DDEFAULT_MODPOSTFIX=\"-1\"
else
AM_CPPFLAGS += -DDEFAULT_MODPREFIX=\"$(libdir)/libqseawk-\" -DDEFAULT_MODPOSTFIX=\"\"
endif
#####################################################################3
bin_PROGRAMS = qseawk
qseawk_SOURCES = awk.c
qseawk_CFLAGS = $(CFLAGS)
qseawk_LDFLAGS = -L../../lib/awk -L../../lib/si -L../../lib/cmn
qseawk_LDADD = -lqseawk -lqsesi -lqsecmn $(LIBM)
qseawk_DEPENDENCIES = ../../lib/awk/libqseawk.la ../../lib/si/libqsesi.la ../../lib/cmn/libqsecmn.la
if ENABLE_LIBLTDL
qseawk_LDADD += $(LTDL_LIBS)
else
qseawk_LDADD += $(DL_LIBS)
endif
if WIN32
qseawk_LDADD += $(UNICOWS_LIBS)
endif