1 # SUMMARY: Makefile for the OO-Browser
3 # AUTHOR: Bob Weiner / Mark Stern
4 # ORG: BeOpen.com / Brown U.
7 # LAST-MOD: 22-May-97 at 14:59:38 by Bob Weiner
9 # Copyright (C) 1990-1996 BeOpen.com and the Free Software Foundation, Inc.
10 # See the file BR-COPY for license information.
12 # This file is part of the OO-Browser.
14 # If the usleep () system call exists on your system, uncomment the following line.
15 DEFINES = -DHAVE_USLEEP
17 # Set this to be the directory in which to install the X OO-Browser
18 # executable. This should be a directory in all users' search paths or the
19 # value of the Emacs variable, exec-directory. The INFODOCK environment
20 # variable is automatically set within InfoDock to the InfoDock root directory.
21 # If you run make from outside of InfoDock, you can replace this environment
22 # variable with whatever root directory tree is appropriate for your site.
24 # Use 'make install' to install the binary.
25 BINDIR = ${INFODOCK}/bin/alpha-dec-osf
27 # Root directory of your X distribution. Note how this is used in succeeding
30 LD_LIBRARY_PATH = $(XROOT)/lib/X11
31 INCLUDEDIRS = -I$(XROOT)/include/X11
32 LIBDIRS = -L$(XROOT)/lib/X11
34 # Use this for the standard Athena widgets.
36 # Use this instead for the 3D Athena widget library.
38 # Set this to one of the 2 above variable names.
40 # Set this to one of the 2 above variable values.
46 CFLAGS = -O2 $(INCLUDEDIRS) $(DEFINES) -D$(DEFXAW)
48 # Set XVERSION to the proper relase of X11 for your system.
49 # Use X11R5 if your system is not on X11R6 or above.
54 # X11 libraries used by all system configurations.
55 XCOMMON = -lXmu -lXt -lX11 -lXext
57 # This is used for static linking on a generic platform such as SunOS 4.
58 LD_STATIC = -static $(LIBDIRS) $(LIBXAW) $(XCOMMON) $(XVERSION)
59 # This is used for static linking on Alpha DEC OSF V3.2 with X11R5.
60 #LD_DECOSF = -non_shared $(LIBDIRS) $(LIBXAW) $(XCOMMON) -ldnet_stub $(XVERSION)
61 # This is used for dynamic linking on Alpha DEC OSF V3.2 with X11R5.
62 LD_DECOSF = $(LIBDIRS) $(LIBXAW) $(XCOMMON) -ldnet_stub $(XVERSION)
63 # This is used for dynamic linking under Solaris.
64 LD_SOLARIS = $(LIBDIRS) $(LIBXAW) $(XCOMMON) -lsocket $(XVERSION)
65 # This is used for dynamic linking under Linux.
66 LD_LINUX = $(LIBDIRS) $(LIBXAW) $(XCOMMON) $(XVERSION)
69 C_FILES = draw.c tree.c input.c dissolve.c dbl.c intf.c usleep.c
70 O_FILES = draw.o tree.o input.o dissolve.o dbl.o intf.o usleep.o
71 INC_FILES = defs.h tree.h input.h dissolve.h dbl.h rsrc.h intf.h help.h
72 SRC_FILES = $(INC_FILES) $(C_FILES)
77 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_STATIC)
80 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_DECOSF)
83 $(CC) $(CFLAGS) -DSYSV -o $(NAME) $(O_FILES) $(LD_SOLARIS)
86 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_LINUX)
91 mv $(NAME) $(BINDIR)/$(NAME)
94 rm -f *.o *.orig *.rej $(NAME) core *~
100 dissolve.o: dissolve.h
101 draw.o: defs.h tree.h dbl.h intf.h
102 input.o: defs.h tree.h input.h
103 intf.o: defs.h tree.h dbl.h intf.h rsrc.h input.h help.h
104 tree.o: defs.h tree.h intf.h