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

52 lines
1.3 KiB
Makefile
Raw Normal View History

1994-12-13 18:08:34 +00:00
#
# Makefile for udl
# Copyright (c) 1993-1994 Soenke Behrens
# For use with dmake
#
# $Id: Makefile.gs,v 1.1 1994/12/13 18:08:13 gdr Exp $
#
# Define the following as necessary:
#
# HAS_ATEXIT if your system has atexit()
#
# _POSIX_C_SOURCE and _POSIX_SOURCE if your compiler is Posix compliant
#
# READDIR_RETURNS_DOT if your direct readdir() function will return
# entries for "." and "..". SunOS4 is known to do this.
#
# BROKEN_REALLOC if your realloc() doesn't behave like malloc() when
# passed a NULL pointer as the first argument.
#
# GNO if you are compiling on the IIgs. This will allow for both
# ':' and '/' as pathname separators.
#
# CHECK_STACK if you want stack usage to be displayed (IIgs only).
# You will also have to specify -l/usr/lib/stack in LDFLAGS.
DEFINES = -DGNO -D_POSIX_C_SOURCE -D_POSIX_SOURCE -DHAS_ATEXIT -DCHECK_STACK
CFLAGS = $(DEFINES) -G25 -w -v
LDFLAGS = -v -l/usr/lib/stack -l/usr/lib/gnulib
#
# You should not have to modify anything beyond this point
#
udl: udl.o udluse.o udl.r common.o
$(CC) $(LDFLAGS) -o udl udl.o udluse.o common.o
copyfork udl.r udl
udl.o: udl.gs.c common.h
$(CC) -c $(CFLAGS) -o udl.o udl.gs.c
install:
cp -f udl /usr/local/bin
cp -f udl.1 /usr/man/man1
clean:
$(RM) *.o udl
dist:
@echo "Sorry, automatic packing not supported yet"
common.o:: common.h