1994-12-13 18:08:34 +00:00
|
|
|
#
|
|
|
|
# Makefile for udl
|
1996-01-22 01:01:36 +00:00
|
|
|
# Copyright (c) 1993-1996 Soenke Behrens
|
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
|
|
|
#
|
1996-01-22 01:01:36 +00:00
|
|
|
# $Id: Makefile.gs,v 1.8 1996/01/22 01:01:30 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.
|
|
|
|
|
|
|
|
CFLAGS = $(DEFINES) -O -w -s2048
|
|
|
|
LDFLAGS = -s2048
|
|
|
|
|
|
|
|
# Depending on how you have your libraries set up, you may not need
|
|
|
|
# this next line. In that case, just comment it out.
|
|
|
|
|
|
|
|
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)
|
|
|
|
cp -f udl.1 $(MANDIR)
|
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
|
|
|
|
|
|
|
dist:
|
|
|
|
@echo "Sorry, automatic packing not supported yet"
|
|
|
|
|
|
|
|
common.o:: common.h
|
1995-02-08 05:25:26 +00:00
|
|
|
globals.o:: common.h
|