Mercurial > hg > xemacs-beta
comparison lisp/oobr/tree-x/Makefile @ 100:4be1180a9e89 r20-1b2
Import from CVS: tag r20-1b2
| author | cvs |
|---|---|
| date | Mon, 13 Aug 2007 09:15:11 +0200 |
| parents | 131b0175ea99 |
| children |
comparison
equal
deleted
inserted
replaced
| 99:2d83cbd90d8d | 100:4be1180a9e89 |
|---|---|
| 1 # | 1 # |
| 2 # SUMMARY: What's new in this version of the OO-Browser? | 2 # SUMMARY: Makefile for the OO-Browser |
| 3 # | 3 # |
| 4 # AUTHOR: Bob Weiner / Mark Stern | 4 # AUTHOR: Bob Weiner / Mark Stern |
| 5 # ORG: InfoDock Associates / Brown U. | |
| 5 # | 6 # |
| 6 # ORIG-DATE: 15-Oct-90 | 7 # ORIG-DATE: 15-Oct-90 |
| 7 # LAST-MOD: 14-Sep-95 at 10:20:41 by Bob Weiner | 8 # LAST-MOD: 19-Oct-96 at 00:53:29 by Bob Weiner |
| 8 # | 9 # |
| 9 # Copyright (C) 1990-1995 Free Software Foundation, Inc. | 10 # Copyright (C) 1990-1996 Free Software Foundation, Inc. |
| 10 # See the file BR-COPY for license information. | 11 # See the file BR-COPY for license information. |
| 11 # | 12 # |
| 12 # This file is part of the OO-Browser. | 13 # This file is part of the OO-Browser. |
| 13 | 14 |
| 14 # Use -DHAVE_USLEEP if usleep() is a valid system call. Otherwise, comment | 15 # If the usleep () system call exists on your system, uncomment the following line. |
| 15 # out this line or set its value to be empty, in which case the definition in | |
| 16 # "usleep.c" will be used.. | |
| 17 DEFINES = -DHAVE_USLEEP | 16 DEFINES = -DHAVE_USLEEP |
| 18 # Use the line below instead under Solaris. | |
| 19 # DEFINES = -DSYSV | |
| 20 | 17 |
| 21 # Root directory of your X distribution. Note how this is used in succeeding | 18 # Root directory of your X distribution. Note how this is used in succeeding |
| 22 # variables. | 19 # variables. |
| 23 XROOT = /usr/moto/X11R5 | 20 XROOT = /usr/X11 |
| 24 LD_LIBRARY_PATH = $(XROOT)/lib | 21 LD_LIBRARY_PATH = $(XROOT)/lib |
| 25 INCLUDEDIRS = -I$(XROOT)/include | 22 INCLUDEDIRS = -I$(XROOT)/include |
| 26 LIBDIRS = -L$(XROOT)/lib | 23 LIBDIRS = -L$(XROOT)/lib |
| 27 | 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 | |
| 28 # C compiler | 34 # C compiler |
| 29 CC = gcc | 35 CC = gcc |
| 30 # Compiler flags | 36 # Compiler flags |
| 31 CFLAGS = -g -O $(INCLUDEDIRS) $(DEFINES) | 37 CFLAGS = -g -O $(INCLUDEDIRS) $(DEFINES) -D$(DEFXAW) |
| 32 | 38 |
| 33 # Linker flags. Remove the -static for dynamic linking, e.g. under Linux. | 39 # Set XVERSION to the proper relase of X11 for your system. |
| 34 # LDFLAGS = -static $(LIBDIRS) -lXaw -lXmu -lXt -lX11 -lXext | 40 # Use X11R5 if you system is not on X11R6 or above. |
| 35 # Use the line below instead under Solaris. | 41 X11R5 = |
| 36 # LDFLAGS = $(LIBDIRS) -lXaw -lXmu -lXt -lX11 -lXext -lsocket | 42 X11R6 = -lSM -lICE |
| 37 LDFLAGS = $(LIBDIRS) -lXaw -lXmu -lXt -lX11 -lXext | 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) | |
| 38 | 54 |
| 39 # Set this to be the directory in which to install the X OO-Browser | 55 # Set this to be the directory in which to install the X OO-Browser |
| 40 # executable. This should be a directory in all users' search paths or the | 56 # executable. This should be a directory in all users' search paths or the |
| 41 # value of the Emacs variable, exec-directory. | 57 # value of the Emacs variable, exec-directory. |
| 42 # Use 'make install' to install the binary. | 58 # Use 'make install' to install the binary. |
| 43 BINDIR = /usr/local/infodock/bin | 59 BINDIR = /home/infodock/lib-bin-linux-elf |
| 44 | 60 |
| 45 NAME = xoobr | 61 NAME = xoobr |
| 46 C_FILES = draw.c tree.c input.c dissolve.c dbl.c intf.c usleep.c | 62 C_FILES = draw.c tree.c input.c dissolve.c dbl.c intf.c usleep.c |
| 47 O_FILES = draw.o tree.o input.o dissolve.o dbl.o intf.o usleep.o | 63 O_FILES = draw.o tree.o input.o dissolve.o dbl.o intf.o usleep.o |
| 48 INC_FILES = defs.h tree.h input.h dissolve.h dbl.h rsrc.h intf.h help.h | 64 INC_FILES = defs.h tree.h input.h dissolve.h dbl.h rsrc.h intf.h help.h |
| 49 SRC_FILES = $(INC_FILES) $(C_FILES) | 65 SRC_FILES = $(INC_FILES) $(C_FILES) |
| 50 | 66 |
| 51 $(NAME): $(O_FILES) | 67 $(NAME): linux |
| 52 $(CC) $(CFLAGS) -o $(NAME) $(O_FILES) $(LDFLAGS) | 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 | |
| 53 | 78 |
| 54 install: $(NAME) | 79 install: $(NAME) |
| 55 chmod 755 $(NAME) | 80 chmod 755 $(NAME) |
| 56 mv $(NAME) $(BINDIR)/$(NAME) | 81 mv $(NAME) $(BINDIR)/$(NAME) |
| 57 | 82 |
