2 # SUMMARY: Makefile for the OO-Browser
4 # AUTHOR: Bob Weiner / Mark Stern
5 # ORG: BeOpen.com / Brown U.
8 # LAST-MOD: 20-Apr-98 at 18:02:42 by Bob Weiner
10 # Copyright (C) 1990-1996 BeOpen.com and the Free Software Foundation, Inc.
11 # See the file BR-COPY for license information.
13 # This file is part of the OO-Browser.
15 # If the usleep () system call exists on your system, uncomment the following line.
16 # DEFINES = -DHAVE_USLEEP
18 # Set this to be the directory in which to install the X OO-Browser
19 # executable. This should be a directory in all users' search paths or the
20 # value of the Emacs variable, exec-directory. The INFODOCK environment
21 # variable is automatically set within InfoDock to the InfoDock root directory.
22 # If you run make from outside of InfoDock, you can replace this environment
23 # variable with whatever root directory tree is appropriate for your site.
25 # Use 'make install' to install the binary.
26 BINDIR = ${INFODOCK}/bin/sparc-sun-solaris
28 # Root directory of your X distribution. Note how this is used in succeeding
31 LD_LIBRARY_PATH = $(XROOT)/lib
32 INCLUDEDIRS = -I$(XROOT)/include
33 LIBDIRS = -L$(XROOT)/lib
35 # Use this for the standard Athena widgets.
37 # Use this instead for the 3D Athena widget library.
39 # Set this to one of the 2 above variable names.
41 # Set this to one of the 2 above variable values.
47 CFLAGS = -g -O $(INCLUDEDIRS) $(DEFINES) -D$(DEFXAW)
49 # Set XVERSION to the proper relase of X11 for your system.
50 # Use X11R5 if your system is not on X11R6 or above.
55 # X11 libraries used by all system configurations.
56 XCOMMON = -lXmu -lXt -lX11 -lXext
58 # This is used for static linking on a generic platform such as SunOS 4.
59 LD_STATIC = -static $(LIBDIRS) $(LIBXAW) $(XCOMMON) $(XVERSION)
60 # This is used for dynamic linking under Solaris.
61 LD_SOLARIS = $(LIBDIRS) $(LIBXAW) $(XCOMMON) -lsocket $(XVERSION)
62 # This is used for dynamic linking under Linux and HP-UX.
63 LD_DYNAMIC = $(LIBDIRS) $(LIBXAW) $(XCOMMON) $(XVERSION)
66 C_FILES = draw.c tree.c input.c dissolve.c dbl.c intf.c usleep.c
67 O_FILES = draw.o tree.o input.o dissolve.o dbl.o intf.o usleep.o
68 INC_FILES = defs.h tree.h input.h dissolve.h dbl.h rsrc.h intf.h help.h
69 SRC_FILES = $(INC_FILES) $(C_FILES)
74 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_STATIC)
77 $(CC) $(CFLAGS) -DSYSV -o $(NAME) $(O_FILES) $(LD_SOLARIS)
80 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_DYNAMIC)
83 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_DYNAMIC)
87 mv $(NAME) $(BINDIR)/$(NAME)
90 rm -f *.o *.orig *.rej $(NAME) core *~
96 dissolve.o: dissolve.h
97 draw.o: dissolve.h defs.h tree.h dbl.h intf.h
98 input.o: defs.h tree.h input.h dbl.h intf.h
99 intf.o: defs.h tree.h dbl.h intf.h rsrc.h input.h help.h dissolve.h
100 tree.o: defs.h tree.h dbl.h intf.h