mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-11-15 15:07:16 +00:00
86337db335
- Changed source slightly to compile under djgpp (MS-DOS) and Linux, linted source. - Unix makefile changed by Devin Reade to automatically detect OS type. - Apple IIgs source now opens files with "r+b" instead of "rwb"
61 lines
1.1 KiB
JavaScript
61 lines
1.1 KiB
JavaScript
#
|
|
# Makefile for udl
|
|
# Copyright (c) 1993-1996 Soenke Behrens, Devin Reade
|
|
#
|
|
# This makefile should be used with dmake.
|
|
#
|
|
# $Id: Makefile.gs,v 1.11 1997/08/02 21:09:13 gdr Exp $
|
|
#
|
|
|
|
# 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.
|
|
|
|
DEFINES = -DGNO -D_POSIX_C_SOURCE -D_POSIX_SOURCE -DHAS_ATEXIT \
|
|
-DOVERFLOW_CHECK
|
|
|
|
# Use optimization and a 2k stack.
|
|
|
|
CFLAGS = $(DEFINES) -O -s2048
|
|
LDFLAGS =
|
|
|
|
# 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
|
|
|
|
#
|
|
# 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
|
|
|
|
udl.o: udlgs.c common.h
|
|
$(CC) -c $(CFLAGS) -o udl.o udlgs.c
|
|
|
|
install:
|
|
cp -f udl $(BINDIR)
|
|
cp -f udl.1 $(MANDIR)/man1
|
|
|
|
help:
|
|
mkdir $@
|
|
|
|
help/udl: udl.1 help
|
|
nroff -man udl.1 > $@
|
|
|
|
clean:
|
|
-$(RM) *.o *.root udl.r
|
|
|
|
clobber: clean
|
|
-$(RM) -rf udl help
|
|
|
|
common.o:: common.h
|
|
globals.o:: common.h
|