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
|
# Copyright (c) 1993-1997 Xerox Corporation. All Rights Reserved.
#
# Permission to use, copy, modify and distribute without charge
# this software, documentation, images, etc. is granted, provided
# that this copyright and the author's name is retained.
#
# A fee may be charged for this program ONLY to recover costs for
# distribution (i.e. media costs). No profit can be made on this
# program.
#
# The author assumes no responsibility for disasters (natural or
# otherwise) as a consequence of use of this software.
#
# Adam Stein (adam@iset.scan.mc.xerox.com)
# Name of program to build
TARGET=xtoolplaces
# Name of resource file
RESOURCE=Xtoolplaces
# Directories to install to
BINDIR=/usr/local/bin
MANDIR=/usr/local/man/man1
APPSDIR=/usr/lib/X11/app-defaults
# Top level of X directory structure
XTOP=/usr/local/openwin
# Setup for using gcc
CC=gcc
GCCDEFS=-traditional -fpcc-struct-return -c -O
# If your system does include a gethostname() function, uncomment
# the second line.
#GETHOST = -DNO_GETHOST
GETHOST =
# If you have ANSI (SYS5) string funtions instead of the BSD one,
# (eg. strrchr instead of rindex) uncomment the second line
ANSI_STR =
#ANSI_STR = -DANSI_STR
# If you need the strdup() function, uncomment the second line
STRDUP=
#STRDUP=-DNEED_STRDUP
# If you need the strstr() function, uncomment the second line
STRSTR=
#STRSTR=-DNEED_STRSTR
CFLAGS=-I. -I${XTOP}/include ${GCCDEFS} ${ANSI_STR} ${GETHOST} ${STRDUP} \
${STRSTR}
# Uncomment if using a NCR 3350 running SVR4
#SYS_LIBRARIES = -L/usr/ucblib -lucb
INCS=addon.h patchlevel.h xtoolplaces.h
SRCS=copyright.c adddisplay.c addon.c combine.c fix_command.c\
getargs.c getgeom.c getinfo.c is.c make_list.c readfile.c\
strdup.c strstr.c xtoolplaces.c
OBJS=copyright.o adddisplay.o addon.o combine.o fix_command.o\
getargs.o getgeom.o getinfo.o is.o make_list.o readfile.o\
strdup.o strstr.o xtoolplaces.o
.KEEP_STATE:
${TARGET}: ${OBJS}
${CC} -o ${TARGET} ${OBJS} -lX11 ${SYS_LIBRARIES}
install: ${TARGET}
install ${TARGET} ${BINDIR}
install ${TARGET}.man ${MANDIR}/${TARGET}.1
install ${RESOURCE}.ad ${APPSDIR}/${RESOURCE}
clean:
rm -f core makelog ${TARGET} ${OBJS}
|