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