Initial Commit
[packages] / xemacs-packages / oo-browser / tree-x / Makefile.decosf
1 # SUMMARY:      Makefile for the OO-Browser
2 #
3 # AUTHOR:       Bob Weiner / Mark Stern
4 # ORG:          BeOpen.com / Brown U.
5 #
6 # ORIG-DATE:    15-Oct-90
7 # LAST-MOD:     22-May-97 at 14:59:38 by Bob Weiner
8 #
9 # Copyright (C) 1990-1996  BeOpen.com and the Free Software Foundation, Inc.
10 # See the file BR-COPY for license information.
11 #
12 # This file is part of the OO-Browser.
13
14 # If the usleep () system call exists on your system, uncomment the following line.
15 DEFINES         = -DHAVE_USLEEP
16
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.
23 #
24 # Use 'make install' to install the binary.
25 BINDIR          = ${INFODOCK}/bin/alpha-dec-osf
26
27 # Root directory of your X distribution.  Note how this is used in succeeding
28 # variables.
29 XROOT           = /usr
30 LD_LIBRARY_PATH = $(XROOT)/lib/X11
31 INCLUDEDIRS     = -I$(XROOT)/include/X11
32 LIBDIRS         = -L$(XROOT)/lib/X11
33
34 # Use this for the standard Athena widgets.
35 XAW = -lXaw
36 # Use this instead for the 3D Athena widget library.
37 XAW3D = -lXaw3d
38 # Set this to one of the 2 above variable names.
39 DEFXAW = XAW
40 # Set this to one of the 2 above variable values.
41 LIBXAW = $(XAW)
42
43 # C compiler
44 CC              = cc
45 # Compiler flags
46 CFLAGS          = -O2 $(INCLUDEDIRS) $(DEFINES) -D$(DEFXAW)
47
48 #   Set XVERSION to the proper relase of X11 for your system.
49 #   Use X11R5 if your system is not on X11R6 or above.
50 X11R5 = 
51 X11R6 = -lSM -lICE
52 XVERSION = $(X11R5)
53
54 #   X11 libraries used by all system configurations.
55 XCOMMON = -lXmu -lXt -lX11 -lXext
56
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)
67
68 NAME            = xoobr
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)
73
74 $(NAME):        decosf
75
76 static:         $(O_FILES)
77                 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_STATIC)
78
79 decosf:         $(O_FILES)
80                 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_DECOSF)
81
82 solaris:        $(O_FILES)
83                 $(CC) $(CFLAGS) -DSYSV -o $(NAME) $(O_FILES) $(LD_SOLARIS)
84
85 linux:          $(O_FILES)
86                 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_LINUX)
87
88
89 install:        $(NAME)
90                 chmod 755 $(NAME)
91                 mv $(NAME) $(BINDIR)/$(NAME)
92
93 clean:
94                 rm -f *.o *.orig *.rej $(NAME) core *~
95
96 size:
97                 wc $(SRC_FILES)
98
99 dbl.o:          dbl.h 
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