0
|
1 #
|
24
|
2 # SUMMARY: Makefile for the OO-Browser
|
0
|
3 #
|
|
4 # AUTHOR: Bob Weiner / Mark Stern
|
24
|
5 # ORG: InfoDock Associates / Brown U.
|
0
|
6 #
|
|
7 # ORIG-DATE: 15-Oct-90
|
24
|
8 # LAST-MOD: 19-Oct-96 at 00:53:29 by Bob Weiner
|
0
|
9 #
|
24
|
10 # Copyright (C) 1990-1996 Free Software Foundation, Inc.
|
0
|
11 # See the file BR-COPY for license information.
|
|
12 #
|
|
13 # This file is part of the OO-Browser.
|
|
14
|
24
|
15 # If the usleep () system call exists on your system, uncomment the following line.
|
0
|
16 DEFINES = -DHAVE_USLEEP
|
|
17
|
|
18 # Root directory of your X distribution. Note how this is used in succeeding
|
|
19 # variables.
|
24
|
20 XROOT = /usr/X11
|
0
|
21 LD_LIBRARY_PATH = $(XROOT)/lib
|
|
22 INCLUDEDIRS = -I$(XROOT)/include
|
|
23 LIBDIRS = -L$(XROOT)/lib
|
|
24
|
24
|
25 # Use this for the standard Athena widgets.
|
|
26 XAW = -lXaw
|
|
27 # Use this instead for the 3D Athena widget library.
|
|
28 XAW3D = -lXaw3d
|
|
29 # Set this to one of the 2 above variable names.
|
|
30 DEFXAW = XAW
|
|
31 # Set this to one of the 2 above variable values.
|
|
32 LIBXAW = $(XAW)
|
|
33
|
0
|
34 # C compiler
|
|
35 CC = gcc
|
|
36 # Compiler flags
|
24
|
37 CFLAGS = -g -O $(INCLUDEDIRS) $(DEFINES) -D$(DEFXAW)
|
|
38
|
|
39 # Set XVERSION to the proper relase of X11 for your system.
|
|
40 # Use X11R5 if you system is not on X11R6 or above.
|
|
41 X11R5 =
|
|
42 X11R6 = -lSM -lICE
|
|
43 XVERSION = $(X11R6)
|
0
|
44
|
24
|
45 # X11 libraries used by all system configurations.
|
|
46 XCOMMON = -lXmu -lXt -lX11 -lXext
|
|
47
|
|
48 # This is used for static linking on a generic platform such as SunOS 4.
|
|
49 LD_STATIC = -static $(LIBDIRS) $(LIBXAW) $(XCOMMON) $(XVERSION)
|
|
50 # This is used for dynamic linking under Solaris.
|
|
51 LD_SOLARIS = $(LIBDIRS) $(LIBXAW) $(XCOMMON) -lsocket $(XVERSION)
|
|
52 # This is used for dynamic linking under Linux.
|
|
53 LD_LINUX = $(LIBDIRS) $(LIBXAW) $(XCOMMON) $(XVERSION)
|
0
|
54
|
|
55 # Set this to be the directory in which to install the X OO-Browser
|
|
56 # executable. This should be a directory in all users' search paths or the
|
|
57 # value of the Emacs variable, exec-directory.
|
|
58 # Use 'make install' to install the binary.
|
24
|
59 BINDIR = /home/infodock/lib-bin-linux-elf
|
0
|
60
|
|
61 NAME = xoobr
|
|
62 C_FILES = draw.c tree.c input.c dissolve.c dbl.c intf.c usleep.c
|
|
63 O_FILES = draw.o tree.o input.o dissolve.o dbl.o intf.o usleep.o
|
|
64 INC_FILES = defs.h tree.h input.h dissolve.h dbl.h rsrc.h intf.h help.h
|
|
65 SRC_FILES = $(INC_FILES) $(C_FILES)
|
|
66
|
24
|
67 $(NAME): linux
|
|
68
|
|
69 static: $(O_FILES)
|
|
70 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_STATIC)
|
|
71
|
|
72 solaris: $(O_FILES)
|
|
73 $(CC) $(CFLAGS) -DSYSV -o $(NAME) $(O_FILES) $(LD_SOLARIS)
|
|
74
|
|
75 linux: $(O_FILES)
|
|
76 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LD_LINUX)
|
|
77
|
0
|
78
|
|
79 install: $(NAME)
|
|
80 chmod 755 $(NAME)
|
|
81 mv $(NAME) $(BINDIR)/$(NAME)
|
|
82
|
|
83 clean:
|
|
84 rm -f *.o *.orig *.rej $(NAME) core *~
|
|
85
|
|
86 size:
|
|
87 wc $(SRC_FILES)
|
|
88
|
|
89 dbl.o: dbl.h
|
|
90 dissolve.o: dissolve.h
|
|
91 draw.o: defs.h tree.h dbl.h intf.h
|
|
92 input.o: defs.h tree.h input.h
|
|
93 intf.o: defs.h tree.h dbl.h intf.h rsrc.h input.h help.h
|
|
94 tree.o: defs.h tree.h intf.h
|