annotate lisp/oobr/tree-x/Makefile @ 24:4103f0995bd7 r19-15b95

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