mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-10-17 09:24:24 +00:00
3cef5cabcf
filename-munging on Solaris. It seems that the sys/stat.h header file doesn't agree with the stat implementation. Modified Makefile.gs to properly write the new executable over the old resource fork for udl. The resource fork originates with the file udl.r. Added suggested defines to the README for various Unix platforms. Man page changes, including grammar and the deletion of a bug that no longer exists. Fixed bug where invoking 'udl -u directory' would attempt to deref a NULL pointer, causing either memory tromping (IIgs) or a core dump (Unix). Tested under SunOS 4.x, SunOS 5.x (Solaris), and AIX.
67 lines
1.6 KiB
Makefile
67 lines
1.6 KiB
Makefile
#
|
|
# Makefile for udl
|
|
# (c) 1993-1994 Soenke Behrens
|
|
#
|
|
# $Id: Makefile.unx,v 1.6 1995/02/08 06:12:29 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 "..". SunOS 4.x and 5.x (Solaris) are known to
|
|
# do this.
|
|
#
|
|
# BROKEN_REALLOC if your realloc() doesn't behave like malloc() when
|
|
# passed a NULL pointer as the first argument.
|
|
#
|
|
# 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.
|
|
#
|
|
|
|
# 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
|
|
|
|
# These are Solaris defines. See previous comments.
|
|
DEFINES = -DREADDIR_RETURNS_DOT -D_POSIX_C_SOURCE -D_POSIX_SOURCE \
|
|
-DBROKEN_DIRENT_STRUCT
|
|
|
|
CFLAGS = $(DEFINES) -O
|
|
LDFLAGS =
|
|
# You may need -lucb in LDLIBS
|
|
LDLIBS = -lucb
|
|
OBJS = udl.o udluse.o common.o globals.o
|
|
|
|
#
|
|
# You should not have to modify anything beyond this point
|
|
#
|
|
|
|
udl: $(OBJS)
|
|
$(CC) $(LDFLAGS) -o udl $(OBJS) $(LDLIBS)
|
|
|
|
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:
|
|
-rm *.o *~ core
|
|
|
|
clobber: clean
|
|
-rm udl
|
|
|
|
dist:
|
|
@echo 'Sorry, automatic packing not yet supported.'
|
|
|
|
udluse.o common.o globals.o:: common.h
|