Mercurial > hg > xemacs-beta
comparison pkg-src/tree-x/Makefile @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
162:4de2936b4e77 | 163:0132846995bd |
---|---|
1 # | |
2 # SUMMARY: Makefile for the OO-Browser | |
3 # | |
4 # AUTHOR: Bob Weiner / Mark Stern | |
5 # ORG: InfoDock Associates / Brown U. | |
6 # | |
7 # ORIG-DATE: 15-Oct-90 | |
8 # LAST-MOD: 19-Oct-96 at 00:53:29 by Bob Weiner | |
9 # | |
10 # Copyright (C) 1990-1996 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 # Root directory of your X distribution. Note how this is used in succeeding | |
19 # variables. | |
20 XROOT = /usr/X11 | |
21 LD_LIBRARY_PATH = $(XROOT)/lib | |
22 INCLUDEDIRS = -I$(XROOT)/include | |
23 LIBDIRS = -L$(XROOT)/lib | |
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 | |
34 # C compiler | |
35 CC = gcc | |
36 # Compiler flags | |
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) | |
44 | |
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) | |
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. | |
59 BINDIR = /home/infodock/lib-bin-linux-elf | |
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 | |
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 | |
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 |