1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
#
# SUMMARY: Makefile for the OO-Browser
#
# AUTHOR: Bob Weiner / Mark Stern
# ORG: BeOpen.com / Brown U.
#
# ORIG-DATE: 15-Oct-90
# LAST-MOD: 20-Apr-98 at 18:02:42 by Bob Weiner
#
# Copyright (C) 1990-1996 BeOpen.com and the Free Software Foundation, Inc.
# See the file BR-COPY for license information.
#
# This file is part of the OO-Browser.
# If the usleep () system call exists on your system, uncomment the following line.
# DEFINES = -DHAVE_USLEEP
# 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. The INFODOCK environment
# variable is automatically set within InfoDock to the InfoDock root directory.
# If you run make from outside of InfoDock, you can replace this environment
# variable with whatever root directory tree is appropriate for your site.
#
# Use 'make install' to install the binary.
BINDIR = ${INFODOCK}/bin/sparc-sun-solaris
# Root directory of your X distribution. Note how this is used in succeeding
# variables.
XROOT = /usr/openwin
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) -D$(DEFXAW)
# Set XVERSION to the proper relase of X11 for your system.
# Use X11R5 if your system is not on X11R6 or above.
X11R5 =
X11R6 = -lSM -lICE
XVERSION = $(X11R5)
# 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 and HP-UX.
LD_DYNAMIC = $(LIBDIRS) $(LIBXAW) $(XCOMMON) $(XVERSION)
NAME = xoobr
C_FILES = draw.c tree.c input.c dissolve.c dbl.c intf.c usleep.c
O_FILES = draw.o tree.o input.o dissolve.o dbl.o intf.o usleep.o
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): solaris
static: $(O_FILES)
$(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_STATIC)
solaris: $(O_FILES)
$(CC) $(CFLAGS) -DSYSV -o $(NAME) $(O_FILES) $(LD_SOLARIS)
hpux: $(O_FILES)
$(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_DYNAMIC)
linux: $(O_FILES)
$(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_DYNAMIC)
install: $(NAME)
chmod 755 $(NAME)
mv $(NAME) $(BINDIR)/$(NAME)
clean:
rm -f *.o *.orig *.rej $(NAME) core *~
size:
wc *.c *.h
dbl.o: dbl.h
dissolve.o: dissolve.h
draw.o: dissolve.h defs.h tree.h dbl.h intf.h
input.o: defs.h tree.h input.h dbl.h intf.h
intf.o: defs.h tree.h dbl.h intf.h rsrc.h input.h help.h dissolve.h
tree.o: defs.h tree.h dbl.h intf.h
|