diff lisp/oobr/tree-x/Makefile @ 24:4103f0995bd7 r19-15b95

Import from CVS: tag r19-15b95
author cvs
date Mon, 13 Aug 2007 08:51:03 +0200
parents 376386a54a3c
children 131b0175ea99
line wrap: on
line diff
--- a/lisp/oobr/tree-x/Makefile	Mon Aug 13 08:50:31 2007 +0200
+++ b/lisp/oobr/tree-x/Makefile	Mon Aug 13 08:51:03 2007 +0200
@@ -1,46 +1,62 @@
 #
-# SUMMARY:      What's new in this version of the OO-Browser?
+# SUMMARY:      Makefile for the OO-Browser
 #
 # AUTHOR:       Bob Weiner / Mark Stern
+# ORG:          InfoDock Associates / Brown U.
 #
 # ORIG-DATE:    15-Oct-90
-# LAST-MOD:     14-Sep-95 at 10:20:41 by Bob Weiner
+# LAST-MOD:     19-Oct-96 at 00:53:29 by Bob Weiner
 #
-# Copyright (C) 1990-1995  Free Software Foundation, Inc.
+# Copyright (C) 1990-1996  Free Software Foundation, Inc.
 # See the file BR-COPY for license information.
 #
 # This file is part of the OO-Browser.
 
-# Use -DHAVE_USLEEP if usleep() is a valid system call. Otherwise, comment
-# out this line or set its value to be empty, in which case the definition in
-# "usleep.c" will be used..
+# If the usleep () system call exists on your system, uncomment the following line.
 DEFINES         = -DHAVE_USLEEP
-# Use the line below instead under Solaris.
-# DEFINES         = -DSYSV
 
 # Root directory of your X distribution.  Note how this is used in succeeding
 # variables.
-XROOT           = /usr/moto/X11R5
+XROOT           = /usr/X11
 LD_LIBRARY_PATH = $(XROOT)/lib
 INCLUDEDIRS     = -I$(XROOT)/include
 LIBDIRS         = -L$(XROOT)/lib
 
+# Use this for the standard Athena widgets.
+XAW = -lXaw
+# Use this instead for the 3D Athena widget library.
+XAW3D = -lXaw3d
+# Set this to one of the 2 above variable names.
+DEFXAW = XAW
+# Set this to one of the 2 above variable values.
+LIBXAW = $(XAW)
+
 # C compiler
 CC		= gcc
 # Compiler flags
-CFLAGS		= -g -O $(INCLUDEDIRS) $(DEFINES)
+CFLAGS		= -g -O $(INCLUDEDIRS) $(DEFINES) -D$(DEFXAW)
+
+#   Set XVERSION to the proper relase of X11 for your system.
+#   Use X11R5 if you system is not on X11R6 or above.
+X11R5 = 
+X11R6 = -lSM -lICE
+XVERSION = $(X11R6)
 
-# Linker flags.  Remove the -static for dynamic linking, e.g. under Linux.
-# LDFLAGS		= -static $(LIBDIRS) -lXaw -lXmu -lXt -lX11 -lXext
-# Use the line below instead under Solaris.
-# LDFLAGS        = $(LIBDIRS) -lXaw -lXmu -lXt -lX11 -lXext -lsocket
-LDFLAGS        = $(LIBDIRS) -lXaw -lXmu -lXt -lX11 -lXext
+#   X11 libraries used by all system configurations.
+XCOMMON = -lXmu -lXt -lX11 -lXext
+
+#   This is used for static linking on a generic platform such as SunOS 4.
+LD_STATIC   	 = -static $(LIBDIRS) $(LIBXAW) $(XCOMMON) $(XVERSION)
+#   This is used for dynamic linking under Solaris.
+LD_SOLARIS       = $(LIBDIRS) $(LIBXAW) $(XCOMMON) -lsocket $(XVERSION)
+#   This is used for dynamic linking under Linux.
+LD_LINUX         = $(LIBDIRS) $(LIBXAW) $(XCOMMON) $(XVERSION)
 
 # Set this to be the directory in which to install the X OO-Browser
 # executable.  This should be a directory in all users' search paths or the
 # value of the Emacs variable, exec-directory.
 # Use 'make install' to install the binary.
-BINDIR          = /usr/local/infodock/bin
+BINDIR          = /home/infodock/lib-bin-linux-elf
 
 NAME		= xoobr
 C_FILES 	= draw.c tree.c input.c dissolve.c dbl.c intf.c usleep.c
@@ -48,8 +64,17 @@
 INC_FILES	= defs.h tree.h input.h dissolve.h dbl.h rsrc.h intf.h help.h
 SRC_FILES	= $(INC_FILES) $(C_FILES)
 
-$(NAME):	$(O_FILES)
-		$(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LDFLAGS)
+$(NAME):	linux
+
+static:		$(O_FILES)
+		$(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_STATIC)
+
+solaris:	$(O_FILES)
+		$(CC) $(CFLAGS) -DSYSV -o $(NAME) $(O_FILES) $(LD_SOLARIS)
+
+linux:		$(O_FILES)
+		$(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_LINUX)
+
 
 install:	$(NAME)
 		chmod 755 $(NAME)