hyung-hwan
a426fe24f4
- specifying $(includedir) to AM_CPPFLAGS caused problems when --prefix was set to /usr during cross-compliation since header files for the cross compiler conflicted with files in $(includedir)=/usr/include. - the same applies to $(libdir) in LDFLAGS or something similar
29 lines
692 B
Makefile
29 lines
692 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_LDFLAGS = -L../../lib/awk -L../../lib/cmn
|
|
qseawk_LDADD = -lqseawk -lqsecmn $(LIBM) $(LIBLTDL)
|
|
|
|
if WIN32
|
|
if WCHAR
|
|
qseawk_LDADD += $(UNICOWS_LIBS)
|
|
endif
|
|
endif
|