1994-12-13 18:08:34 +00:00
|
|
|
#
|
|
|
|
# Makefile for udl
|
|
|
|
# (c) 1993-1994 Soenke Behrens
|
|
|
|
#
|
1995-02-08 06:12:49 +00:00
|
|
|
# $Id: Makefile.unx,v 1.6 1995/02/08 06:12:29 gdr Exp $
|
1994-12-13 18:08:34 +00:00
|
|
|
#
|
|
|
|
# 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
|
1995-02-08 06:12:49 +00:00
|
|
|
# entries for "." and "..". SunOS 4.x and 5.x (Solaris) are known to
|
|
|
|
# do this.
|
1994-12-13 18:08:34 +00:00
|
|
|
#
|
|
|
|
# BROKEN_REALLOC if your realloc() doesn't behave like malloc() when
|
|
|
|
# passed a NULL pointer as the first argument.
|
|
|
|
#
|
1995-02-08 06:12:49 +00:00
|
|
|
# BROKEN_DIRENT_STRUCT if you find that the first two letters of
|
|
|
|
# filenames obtained during directory recursion (as shown when the
|
|
|
|
# "-v" flag is used) seem to be missing. Some installations of
|
|
|
|
# Solaris are known to do this.
|
|
|
|
#
|
1994-12-13 18:08:34 +00:00
|
|
|
|
|
|
|
# If you're on SunOS 4.x systems, use gcc instead; this is ANSI code.
|
|
|
|
CC = cc
|
|
|
|
DESTDIR = /usr/local/
|
|
|
|
BINDIR = bin
|
|
|
|
MANDIR = man/man1
|
|
|
|
INSTALL = cp -f
|
|
|
|
|
1995-02-08 06:12:49 +00:00
|
|
|
# These are Solaris defines. See previous comments.
|
|
|
|
DEFINES = -DREADDIR_RETURNS_DOT -D_POSIX_C_SOURCE -D_POSIX_SOURCE \
|
|
|
|
-DBROKEN_DIRENT_STRUCT
|
|
|
|
|
1994-12-13 18:08:34 +00:00
|
|
|
CFLAGS = $(DEFINES) -O
|
|
|
|
LDFLAGS =
|
1995-02-08 06:12:49 +00:00
|
|
|
# You may need -lucb in LDLIBS
|
|
|
|
LDLIBS = -lucb
|
|
|
|
OBJS = udl.o udluse.o common.o globals.o
|
1994-12-13 18:08:34 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# You should not have to modify anything beyond this point
|
|
|
|
#
|
|
|
|
|
1995-02-08 06:12:49 +00:00
|
|
|
udl: $(OBJS)
|
|
|
|
$(CC) $(LDFLAGS) -o udl $(OBJS) $(LDLIBS)
|
1994-12-13 18:08:34 +00:00
|
|
|
|
|
|
|
udl.o: udl.unix.c common.h
|
|
|
|
$(CC) -c $(CFLAGS) -o udl.o udl.unix.c
|
|
|
|
|
|
|
|
install:
|
|
|
|
$(INSTALL) udl $(DESTDIR)$(BINDIR)
|
|
|
|
$(INSTALL) udl.1 $(DESTDIR)$(MANDIR)
|
|
|
|
|
|
|
|
clean:
|
1995-02-08 06:12:49 +00:00
|
|
|
-rm *.o *~ core
|
1994-12-13 18:08:34 +00:00
|
|
|
|
|
|
|
clobber: clean
|
1995-02-08 06:12:49 +00:00
|
|
|
-rm udl
|
1994-12-13 18:08:34 +00:00
|
|
|
|
|
|
|
dist:
|
|
|
|
@echo 'Sorry, automatic packing not yet supported.'
|
|
|
|
|
1995-02-08 06:12:49 +00:00
|
|
|
udluse.o common.o globals.o:: common.h
|