gno/usr.orca.bin/udl/Makefile.gs

61 lines
1.1 KiB
Makefile
Raw Normal View History

1994-12-13 18:08:34 +00:00
#
# Makefile for udl
# Copyright (c) 1993-1996 Soenke Behrens, Devin Reade
1994-12-13 18:08:34 +00:00
#
# This makefile should be used with dmake.
1994-12-13 18:08:34 +00:00
#
# $Id: Makefile.gs,v 1.11 1997/08/02 21:09:13 gdr Exp $
1994-12-13 18:08:34 +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
DEFINES = -DGNO -D_POSIX_C_SOURCE -D_POSIX_SOURCE -DHAS_ATEXIT \
-DOVERFLOW_CHECK
# Use optimization and a 2k stack.
CFLAGS = $(DEFINES) -O -s2048
LDFLAGS =
# 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
#
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
udl.o: udlgs.c common.h
$(CC) -c $(CFLAGS) -o udl.o udlgs.c
1994-12-13 18:08:34 +00:00
install:
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
help:
mkdir $@
help/udl: udl.1 help
nroff -man udl.1 > $@
1994-12-13 18:08:34 +00:00
clean:
-$(RM) *.o *.root udl.r
clobber: clean
-$(RM) -rf udl help
1994-12-13 18:08:34 +00:00
common.o:: common.h
globals.o:: common.h