summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-30 01:52:41 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-06-30 01:52:41 +0000
commit71b67522065a204e595edc9f09035911d334029b (patch)
treeb88af131f3f94640bc08918f600bc4f31161159c
parentd188ae114e2a026fd891f1dcfd9922df6deecee2 (diff)
downloadsunmake-71b67522065a204e595edc9f09035911d334029b.tar.gz
Build libmksh
-rw-r--r--Makefile.am25
-rw-r--r--configure.ac10
2 files changed, 34 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 3cc1552..baef49a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,10 +2,13 @@ AM_CPPFLAGS = -DTEXT_DOMAIN=\"SUNW_OST_OSLIB\"
AM_CPPFLAGS += -DNDEBUG
AM_CPPFLAGS += -I$(top_srcdir)/usr/src/make_src/include
+AM_CPPFLAGS += $(ARCH_CPPFLAGS)
+
lib_LTLIBRARIES = \
libmakestate.la \
libbsd.la \
-libmksdmsi18n.la
+libmksdmsi18n.la \
+libmksh.la
libmakestate_la_LDFLAGS = -version-info 1:0:0
libmakestate_la_SOURCES = \
@@ -22,3 +25,23 @@ libmksdmsi18n_la_SOURCES = \
usr/src/make_src/Make/lib/mksdmsi18n/src/libmksdmsi18n_init.cc \
usr/src/make_src/include/avo/intl.h
+libmksh_la_LDFLAGS = -static
+libmksh_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/usr/src/make_src/Make/include
+libmksh_la_SOURCES = \
+usr/src/make_src/Make/include/mksh/defs.h \
+usr/src/make_src/Make/include/mksh/dosys.h \
+usr/src/make_src/Make/include/mksh/globals.h \
+usr/src/make_src/Make/include/mksh/i18n.h \
+usr/src/make_src/Make/include/mksh/libmksh_init.h \
+usr/src/make_src/Make/include/mksh/macro.h \
+usr/src/make_src/Make/include/mksh/misc.h \
+usr/src/make_src/Make/include/mksh/mksh.h \
+usr/src/make_src/Make/include/mksh/read.h \
+usr/src/make_src/Make/lib/mksh/src/dosys.cc \
+usr/src/make_src/Make/lib/mksh/src/globals.cc \
+usr/src/make_src/Make/lib/mksh/src/i18n.cc \
+usr/src/make_src/Make/lib/mksh/src/macro.cc \
+usr/src/make_src/Make/lib/mksh/src/misc.cc \
+usr/src/make_src/Make/lib/mksh/src/mksh.cc \
+usr/src/make_src/Make/lib/mksh/src/read.cc
+
diff --git a/configure.ac b/configure.ac
index 814f580..a7caec5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,16 @@ AC_PROG_LN_S
AC_PROG_MAKE_SET
LT_INIT
+ARCH_CPPFLAGS=
+case $host in
+ *-pc-solaris*)
+ ARCH_CPPFLAGS="$ARCH_CFLAGS -DSUN5_0 -DSYSV -Dx86"
+ ;;
+ *)
+ ;;
+esac
+AC_SUBST(ARCH_CPPFLAGS)
+
# Checks for libraries.