Category : C Source Code
Archive   : OHLMAKE.ZIP
Filename : MAKEFILE

 
Output of file : MAKEFILE contained in archive : OHLMAKE.ZIP
# Copyright (C) 1988, 1989 Free Software Foundation, Inc.
# This file is part of GNU Make.
#
# GNU Make is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# GNU Make is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Make; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

# MS-DOS port (c) 1990 by Thorsten Ohl
#
# To this port, the same copying conditions apply as to the
# original release.
#
# IMPORTANT:
# This file is not identical to the original GNU release!
# You should have received this code as patch to the official
# GNU release.
#
# MORE IMPORTANT:
# This port comes with ABSOLUTELY NO WARRANTY.
#
# $Header: e:/gnu/make/RCS/makefile.'v 3.58.0.9 90/07/23 23:17:36 tho Exp $

#
# Makefile for GNU Make
#

BINDIR = c:/bin

#BUILD = debug
BUILD = production

LINK = link
# ifeq ($(BUILD),debug)

CFLAGS = $(defines) -FPa -AL -Od -Zi -W4 -DSTDC_HEADERS
CRIPPLED_CFLAGS = $(CFLAGS)
LDFLAGS = /st:0x8000/map/co

# else

# CFLAGS = $(defines) -FPa -AL -Ox -W4 -DSTDC_HEADERS
# CRIPPLED_CFLAGS = $(defines) -FPa -AL -Od -W4 -DSTDC_HEADERS
# LDFLAGS = /st:0x8000/map/e

# endif

defines = -DUSG -DNO_LDAV -DNO_FLOAT


INSTALL = cp

# Any extra object files your system needs.
extras = msd_dir.obj
swapobj = swap.obj spawn.obj
swapsrc = swap.c spawn.c

# If you don't want archive support, comment these out.
ARCHIVES = ar.obj zipscan.obj
ARCHIVES_SRC = ar.c zipscan.c

objs = $(swapobj) glob.obj commands.obj job.obj dir.obj file.obj load.obj \
misc.obj main.obj read.obj remake.obj remote.obj rule.obj \
implicit.obj default.obj variable.obj expand.obj function.obj \
vpath.obj $(ARCHIVES) $(extras)
srcs = $(swapsrc) glob.c commands.c job.c dir.c file.c load.c misc.c \
main.c read.c remake.c remote.c rule.c implicit.c default.c \
variable.c expand.c function.c vpath.c version.c $(ARCHIVES_SRC)
incs = commands.h dep.h file.h job.h make.h rule.h variable.h msd_dir.h

DISK = b:
ZIPFILE = gnumake.zip
# RCSFILES = $(patsubst %, RCS/%'v, $(srcs) $(incs)) RCS/makefile.'v
MISC = projects ChangeLo.g makepat mkpatch

all: gnumake.exe

gnumake.exe: $(objs) version.c
$(CC) $(CFLAGS) -c version.c
# $(LINK) $(LDFLAGS) $(objs) version, $@;
$(LINK) @make.lnk;

# Well, here optimization is dangerous... (inline assembler etc.)
swap.obj: swap.c
$(CC) $(CRIPPLED_CFLAGS) -c $*.c

# MSC 6.0 bombs with `-Ox'
main.obj : main.c make.h commands.h dep.h file.h variable.h job.h
$(CC) $(CRIPPLED_CFLAGS) -c $*.c

# debugging
swap.exe: swap.c spawn.c
$(CC) $(CRIPPLED_CFLAGS) -DTEST -Zi -Fe$@ swap.c spawn.c
rm -f swap.obj spawn.obj

tags.mk: $(srcs) $(srcs2) $(srcs3) $(incs)
etags *.c *.h

install: $(BINDIR)/make.exe

$(BINDIR)/make.exe:gnumake.exe
$(INSTALL) $< $@

clean:
rm -f *.obj *.map tags.mk errs
rcsclean *.c *.h makefile

zip: $(ZIPFILE)

disk: $(DISK)/$(ZIPFILE)

$(ZIPFILE): $(RCSFILES) $(MISC)
pkzip -frp $@

$(DISK)/$(ZIPFILE): $(ZIPFILE)
cp $< $@
pkunzip -t $@ | grep -vw OK

# Dependencies:

ar.obj: make.h file.h
commands.obj: make.h dep.h commands.h file.h variable.h job.h
default.obj: make.h rule.h dep.h file.h commands.h variable.h
dir.obj: make.h msd_dir.h
expand.obj: make.h commands.h file.h variable.h
file.obj: make.h commands.h dep.h file.h variable.h
function.obj: make.h variable.h dep.h commands.h job.h
glob.obj: msd_dir.h
implicit.obj: make.h rule.h dep.h file.h
job.obj: make.h commands.h job.h file.h variable.h
load.obj: make.h commands.h job.h
misc.obj: make.h dep.h
msd_dir.obj: msd_dir.h
read.obj: make.h commands.h dep.h file.h variable.h
remake.obj: make.h commands.h job.h dep.h file.h
remote.obj: remote-s.c make.h commands.h
rule.obj: make.h commands.h dep.h file.h variable.h rule.h
variable.obj: make.h commands.h variable.h dep.h file.h
vpath.obj: make.h file.h variable.h




# Copyright (C) 1988, 1989 Free Software Foundation, Inc.
# This file is part of GNU Make.
#
# GNU Make is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# GNU Make is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Make; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

#
# Makefile for GNU Make
#

CFLAGS = $(defines) -g
LDFLAGS = -g

# Define nothing for BSD, USG for System V, and USGr3 (as well as USG) for
# SVR3, HPUX for HP-UX (as well as USG or USGr3 as appropriate). If you have a
# USG hybrid with and wait3, define HAVE_SYS_WAIT. If you are USG
# but have sys_siglist, define HAVE_SIGLIST. If you are USG, and not USGr3,
# but have dup2, define HAVE_DUP2. If your `cc' command doesn't grok -o
# options with -c (true for many 4.2 BSD derivatives), define
# NO_MINUS_C_MINUS_O. If you don't want archive support, define NO_ARCHIVES.
# If you want to avoid use of floating-point numbers, define NO_FLOAT. If your
# compiler can handle `enum' bitfields (and it's not GCC), define
# ENUM_BITFIELDS.
defines =

# Define UMAX here to use Encore's inq_stats call. Define UMAX_43 (and UMAX)
# if you have UMAX 4.3 instead of UMAX 4.2. If the load average is in a symbol
# in /dev/kmem, define KERNEL_FILE_NAME if not "/vmunix", LDAV_SYMBOL if not
# "_avenrun", LDAV_TYPE if not `long int', and LDAV_CVT to convert the
# LDAV_TYPE value from LDAV_SYMBOL (in `load') to a double if this is not
# "(double) load". If a `struct nlist' (as defined in ) has a `n_un'
# union, rather than a simple `n_name' member, define NLIST_NAME_UNION. If the
# `n_name' member of a `struct nlist' is an array that must be copied into,
# define NLIST_NAME_ARRAY. Otherwise, define NO_LDAV.
LOAD_AVG =

# If you don't want archive support, comment these out.
ARCHIVES = arscan.o ar.o
ARCHIVES_SRC = arscan.c ar.c

# If your system needs extra libraries loaded in, define them here.
# System V probably need -lPW for alloca.
LOADLIBES =

# If your system doesn't have alloca, or the one provided is bad,
# get it from the Emacs distribution and define these.
#ALLOCA = alloca.o
#ALLOCASRC = alloca.c

# If there are remote execution facilities defined,
# enable them with switches here (see remote-*.c).
REMOTE =

# Any extra object files your system needs.
extras =

# Directory to install `make' in.
bindir = $(prefix)/usr/local/bin
# Directory to install the man page in.
mandir = $(prefix)/usr/local/man/man1
# Number to put on the man page filename.
manext = 1

objs = glob.o commands.o job.o dir.o file.o load.o misc.o main.o read.o \
remake.o remote.o rule.o implicit.o default.o variable.o expand.o \
function.o vpath.o version.o $(ARCHIVES) $(ALLOCA) $(extras)
srcs = glob.c commands.c job.c dir.c file.c load.c misc.c main.c read.c \
remake.c remote.c rule.c implicit.c default.c variable.c expand.c \
function.c vpath.c version.c $(ALLOCASRC) $(ARCHIVES_SRC) \
commands.h dep.h file.h job.h make.h rule.h variable.h


.SUFFIXES:
.SUFFIXES: .o .c .h .ps .dvi .texinfo

.PHONY: all doc
all: make
doc: make-info make.dvi


# Take your pick.
#makeinfo = emacs -batch make.texinfo -f texinfo-format-buffer -f save-buffer
makeinfo = makeinfo make.texinfo

make-info: make.texinfo
$(makeinfo)


make.dvi: make.texinfo
-tex make.texinfo
texindex make.cp make.fn make.ky make.pg make.tp make.vr
-tex make.texinfo

make.ps: make.dvi
dvi2ps make.dvi > make.ps

make: $(objs)
$(CC) $(LDFLAGS) $(objs) $(LOADLIBES) -o make.new
mv -f make.new make

load.o: load.c
$(CC) $(CFLAGS) $(LOAD_AVG) -c $*.c
remote.o: remote.c
$(CC) $(CFLAGS) $(REMOTE) -c $*.c

TAGS: $(srcs)
etags -tw $(srcs)
tags: $(srcs)
ctags -tw $(srcs)

.PHONY: install
install: $(bindir)/make $(mandir)/make.$(manext)

$(bindir)/make: make
cp make [email protected]
mv [email protected] $@

$(mandir)/make.$(manext): make.man
cp make.man $@

.PHONY: clean realclean
clean:
-rm -f make *.o core
realclean: clean
-rm -f TAGS tags make.info* make-* make.dvi
-rm -f make.?? make.??s make.log make.toc make.*aux
# Automatically generated dependencies.
glob.o : glob.c
commands.o : commands.c make.h dep.h commands.h file.h variable.h job.h
job.o : job.c make.h commands.h job.h file.h variable.h
dir.o : dir.c make.h
file.o : file.c make.h commands.h dep.h file.h variable.h
load.o : load.c make.h commands.h job.h
misc.o : misc.c make.h dep.h
main.o : main.c make.h commands.h dep.h file.h variable.h job.h
read.o : read.c make.h commands.h dep.h file.h variable.h
remake.o : remake.c make.h commands.h job.h dep.h file.h
remote.o : remote.c remote-stub.c make.h commands.h
rule.o : rule.c make.h commands.h dep.h file.h variable.h rule.h
implicit.o : implicit.c make.h rule.h dep.h file.h
default.o : default.c make.h rule.h dep.h file.h commands.h variable.h
variable.o : variable.c make.h commands.h variable.h dep.h file.h
expand.o : expand.c make.h commands.h file.h variable.h
function.o : function.c make.h variable.h dep.h commands.h job.h
vpath.o : vpath.c make.h file.h variable.h
version.o : version.c
arscan.o : arscan.c
ar.o : ar.c make.h file.h


  3 Responses to “Category : C Source Code
Archive   : OHLMAKE.ZIP
Filename : MAKEFILE

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/