1994-12-13 18:08:34 +00:00
|
|
|
#
|
|
|
|
# Makefile for udl
|
1996-02-11 20:05:49 +00:00
|
|
|
# Copyright (c) 1993-1996 Soenke Behrens, Devin Reade
|
1994-12-13 18:08:34 +00:00
|
|
|
#
|
1996-01-22 01:01:36 +00:00
|
|
|
# This makefile should be used with dmake.
|
1994-12-13 18:08:34 +00:00
|
|
|
#
|
1997-08-02 21:09:13 +00:00
|
|
|
# $Id: Makefile.gs,v 1.11 1997/08/02 21:09:13 gdr Exp $
|
1994-12-13 18:08:34 +00:00
|
|
|
#
|
1996-01-22 01:01:36 +00:00
|
|
|
|
|
|
|
# Where do we put the binaries and man page?
|
|
|
|
|
|
|
|
BINDIR = /usr/local/bin
|
|
|
|
MANDIR = /usr/local/man
|
|
|
|
|
|
|
|
# OS-dependant macros. See the README for an explanation of these.
|
1994-12-13 18:08:34 +00:00
|
|
|
|
1995-02-08 05:05:49 +00:00
|
|
|
DEFINES = -DGNO -D_POSIX_C_SOURCE -D_POSIX_SOURCE -DHAS_ATEXIT \
|
|
|
|
-DOVERFLOW_CHECK
|
1996-01-22 01:01:36 +00:00
|
|
|
|
|
|
|
# Use optimization and a 2k stack.
|
|
|
|
|
1996-02-11 20:05:49 +00:00
|
|
|
CFLAGS = $(DEFINES) -O -s2048
|
1997-08-02 21:09:13 +00:00
|
|
|
LDFLAGS =
|
1996-01-22 01:01:36 +00:00
|
|
|
|
|
|
|
# Depending on how you have your libraries set up, you may not need
|
|
|
|
# this next line. In that case, just comment it out.
|
|
|
|
|
1996-02-11 20:05:49 +00:00
|
|
|
# LDLIBS = -l/usr/lib/gnulib
|
1994-12-13 18:08:34 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# You should not have to modify anything beyond this point
|
|
|
|
#
|
|
|
|
|
1996-01-22 01:01:36 +00:00
|
|
|
OBJS = udl.o udluse.o common.o globals.o
|
|
|
|
|
|
|
|
udl: $(OBJS) udl.r help/udl
|
|
|
|
$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
|
|
|
|
copyfork udl.r $@ -r
|
1994-12-13 18:08:34 +00:00
|
|
|
|
1996-01-22 01:01:36 +00:00
|
|
|
udl.o: udlgs.c common.h
|
|
|
|
$(CC) -c $(CFLAGS) -o udl.o udlgs.c
|
1994-12-13 18:08:34 +00:00
|
|
|
|
|
|
|
install:
|
1996-01-22 01:01:36 +00:00
|
|
|
cp -f udl $(BINDIR)
|
1996-02-04 01:34:31 +00:00
|
|
|
cp -f udl.1 $(MANDIR)/man1
|
1994-12-13 18:08:34 +00:00
|
|
|
|
1996-01-22 01:01:36 +00:00
|
|
|
help:
|
|
|
|
mkdir $@
|
|
|
|
|
|
|
|
help/udl: udl.1 help
|
|
|
|
nroff -man udl.1 > $@
|
1995-02-08 05:25:26 +00:00
|
|
|
|
1994-12-13 18:08:34 +00:00
|
|
|
clean:
|
1996-01-22 01:01:36 +00:00
|
|
|
-$(RM) *.o *.root udl.r
|
|
|
|
|
|
|
|
clobber: clean
|
|
|
|
-$(RM) -rf udl help
|
1994-12-13 18:08:34 +00:00
|
|
|
|
|
|
|
common.o:: common.h
|
1995-02-08 05:25:26 +00:00
|
|
|
globals.o:: common.h
|