mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-08-20 11:29:01 +00:00
Changed EXTERN to extern in common.h, and added globals.c to compensate. Fixed bug in IIgs version where invoking "udl -<flags> filename/" (with the trailing '/') would cause udl to fail due to bad filenames. Added "help" subdirectory. The file "help/udl" is created at build time, and therefore not checked in. Added some "#pragma noroot"s.
58 lines
1.2 KiB
Makefile
58 lines
1.2 KiB
Makefile
#
|
|
# Makefile for udl
|
|
# (c) 1993-1994 Soenke Behrens
|
|
#
|
|
# $Id: Makefile.unx,v 1.5 1995/02/08 05:47:44 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.
|
|
#
|
|
|
|
# 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
|
|
|
|
DEFINES = -DREADDIR_RETURNS_DOT=1 -DBROKEN_REALLOC=1 -D_POSIX_C_SOURCE \
|
|
-D_POSIX_SOURCE
|
|
CFLAGS = $(DEFINES) -O
|
|
# You may need -lucb in LDFLAGS
|
|
LDFLAGS =
|
|
|
|
#
|
|
# You should not have to modify anything beyond this point
|
|
#
|
|
|
|
udl: udl.o udluse.o common.o globals.o
|
|
$(CC) $(LDFLAGS) -o udl udl.o udluse.o common.o globals.o
|
|
|
|
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
|
|
|
|
clobber: clean
|
|
rm udl
|
|
|
|
dist:
|
|
@echo 'Sorry, automatic packing not yet supported.'
|
|
|
|
common.o::common.h
|
|
globals.o::common.h
|