1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
# vi:set ts=4 sw=4 et:
#
# Makefile
# xrootconsole
# Copyright (C) 1988,1999 Eric Youngblut & Bob Galloway
#
# $Id: Makefile,v 1.4 2004/02/20 21:53:28 bob Exp $
#
#
###########################################################################
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# The author of the original version of this software can be reached
# by e-mail at yngblut@cs.washington.edu. The original version of
# this software can be found at http://www.cs.washington.edu/homes/yngblut/
#
# The author of the current version of this software can be reached
# by e-mail at bgallowa@wso.williams.edu. The latest version of this
# software can be found at http://wso.williams.edu/~bgallowa/
#
###########################################################################
EXEC = xrootconsole
BINDIR = /usr/local/bin
MANFILE = xrootconsole.1
MANDIR = /usr/local/share/man/man1
VERSION = $(shell tag=$$(echo '$$Name: RELEASE-0_6 $$' | sed -e 's/\$$//g' -e 's/Name://g'); \
if [ $$tag ]; \
then echo $$tag; \
else echo Bleeding Edge Version; \
fi;)
CC = gcc
CPPFLAGS =
# for production
#CFLAGS = -O2 -DNDEBUG -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION)\"" \
# -I /usr/X11R6/include
#LDFLAGS = -s
# for debian build
CFLAGS = -g -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION)\"" \
-I /usr/X11R6/include
LDFLAGS =
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
# for testing
#CFLAGS = -g -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION) (debug build)\"" \
# -I /usr/X11R6/include
#LDFLAGS =
LIBS = -L/usr/X11R6/lib -lX11
OBJS = main.o util.o
# targets -----------------------------------------------------------------
all: $(EXEC)
$(EXEC): $(OBJS) Makefile
$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
$(OBJS): %.o: %.c util.h Makefile
clean:
rm -f *.o core *~
realclean:
rm -f $(EXEC) *.o core *~
install: $(EXEC)
cp $(EXEC) $(BINDIR)
cp $(MANFILE) $(MANDIR)
|