DtTerm: make it build
[oweals/cde.git] / cde / lib / DtTerm / TermPrim / Makefile.am
index 452b3c850d8976a30fa4ac926c4cc376ac9b9e88..ff78b6c823fff5ff3cbf52ba1d83607908a884be 100644 (file)
@@ -2,6 +2,8 @@ MAINTAINERCLEANFILES = Makefile.in
 
 noinst_LTLIBRARIES = libTermPrim.la
 
+AM_CPPFLAGS = @DT_INCDIR@
+
 libTermPrim_la_SOURCES = TermPrim.c \
         TermPrimAction.c \
         TermPrimBuffer.c \
@@ -29,12 +31,27 @@ libTermPrim_la_SOURCES = TermPrim.c \
         TermPrimVersion.c \
         TermPrimWMProtocols.c
 
+# JET there may be some more missing here...
+
 if AIX
 libTermPrim_la_SOURCES += TermPrimGetPty-clone.c
-else
- if BSD
- libTermPrim_la_SOURCES += TermPrimGetPty-bsd.c
- else
- libTermPrim_la_SOURCES += TermPrimGetPty-svr4.c
- endif
+endif
+
+if SOLARIS
+libTermPrim_la_SOURCES += TermPrimGetPty-svr4.c
+AM_CPPFLAGS += -DSUN_ARCHITECTURE
+endif
+
+# uses CSRG_BASED...
+if BSD
+libTermPrim_la_SOURCES += TermPrimGetPty-bsd.c
+endif
+
+if OPENBSD
+AM_CPPFLAGS += -DOPENBSD_ARCHITECTURE
+endif
+
+if LINUX
+libTermPrim_la_SOURCES += TermPrimGetPty-svr4.c
+AM_CPPFLAGS += -DLINUX_ARCHITECTURE
 endif