home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
GNUISH
/
GPTX01.ZIP
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1990-09-24
|
2KB
|
104 lines
# Permuted index, with keywords in their context.
# Copyright (C) 1990 Free Software Foundation, Inc.
# Francois Pinard <pinard@iro.umontreal.ca>, 1988.
#
# $Id: makefile 0.1.0.5 90/09/21 23:34:40 tho Exp $
# Where `make install' should put the binaries:
BINDIR = c:/bin
# Where `make install' should put the documentation:
INFODIR = c:/emacs/info
# Where to find utility program objects or sources
VPATH = d:/usr/lib;d:/usr/include
VERSION = 0.1
INSTALL = cp -v
DISK = b
ZIPFILE = gptx
MODEL = C
model = c
ifeq ($(BUILD),debug)
OPTIM = -Od -Zi
LDFLAGS = /co/st:0x8000/noe setargv
else
OPTIM = -Ox
LDFLAGS = /e/st:0x8000/noe setargv
endif
# Use CDEFS to select zero or more of the following defines:
# -DIGNORE=\"file\" to specify the normal mode default ignore file
# -DPIGNORE=\"file\" to specify ptx compatibility mode default ignore file
# -DUSG if more System V-like than BSD-like
# -DBROKEN_ASSERT if your <assert.h> cannot grok quotes
CDEFS = -A$(MODEL) -Za -W4 -DUSG -DSTDC_HEADERS
CFLAGS = $(CDEFS) $(OPTIM) -DSYNTAX_TABLE
LOADLIBES= gnulib_$(model)
OBJS = gptx.obj version.obj ctype.obj xmalloc.obj regex.obj \
hregex.obj _cwild.obj
SRCS = ctype.c gptx.c version.c xmalloc.c hregex.c \
assert.h bumpallo.h ctype.h gptx.h
DOCS = gptx.tex gptx.inf
RCSFILES= $(SRCS) $(DOCS) makefile readme changelo depends version.awk
MISC = copying changelo todo make.inc
# Main goals.
.PHONY: all
all: gptx.exe
.PHONY: install
install: gptx.exe gptx.info
$(INSTALL) gptx.exe $(BINDIR)
$(INSTALL) gptx.info $(INFODIR)
tags: $(SRCS)
etags $^
.PHONY: clean veryclean
clean:
rm -f *.obj *.tar patches
veryclean:
rm -f *.exe errs tags *.uue
rcsclean *.c *.h makefile
# Secondary goals.
gptx.exe: $(OBJS)
# We can optimize it, but we can't use the library, because we have
# our own syntax table.
regex.obj: regex.c regex.h
$(CC) -A$(MODEL) -Za -W4 -DUSG -DSTDC_HEADERS -Ox -DSYNTAX_TABLE -c $<
# Dependencies.
gptx.obj: bumpallo.h ctype.h gptx.h
version.obj : version.c
ctype.obj : ctype.c ctype.h
# Read all about .zip files ...
include make.inc
# Tell Francois ...
.PHONY: mail
mail: gptx.uue
gptx.tar: makefile make.inc changelog patches
patches: $(SRCS)
rcsdiff -c -r$(VERSION) $^ > $@