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

64 lines
1.2 KiB
Makefile
Raw Normal View History

1994-12-13 18:08:34 +00:00
#
# Makefile for udl
# Copyright (c) 1993-1996 Soenke Behrens
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.8 1996/01/22 01:01:30 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 -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
#
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)
cp -f udl.1 $(MANDIR)
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
dist:
@echo "Sorry, automatic packing not supported yet"
common.o:: common.h
globals.o:: common.h