# # Copyright (c) 1994, 1995, 1996 Gunther Schadow. All rights reserved. # # This program 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 2 of the License, or # (at your option) any later version. # # This program 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 this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. TOPDIR = .. JUNK += my-pl pltools.o0 pl-tools.pl DISTJUNK += $(JUNK) pltools.o pl-tools.pl pgpl C_SRCS += pltools.c all: source source: pl pgpl include $(TOPDIR)/GNUmakefile.inc pl: pltools.o pl-tools.pl $(PL_CMD) pltools.o: pltools.c $(CC) $(PL_WITH_REGSUB) $(PL_DYNAMIC_FOREIGN) $(PL_VERSION) \ $(CFLAGS) \ -c $< -o pltools.o0 $(LDR) pltools.o0 -o pltools.o -L$(TOPDIR)/compat -lcompat rm -f pltools.o0 $(TOPDIR)/bin/pltools.o ln -s `pwd`/pltools.o $(TOPDIR)/bin/pltools.o pl-tools.pl: $(TOPDIR)/config.mk echo "% This file is created by pl/GNUmakefile" > pl-tools.pl echo $(PL_DYNAMIC_LOAD) >> pl-tools.pl ifeq "$(notdir $(PL_CMD))" "my-pl" $(PL_CMD): $(TOPDIR)/bin/$(PL_CMD) $(TOPDIR)/bin/$(PL_CMD): $(PL_RUNTIME) pltools.o $(CC) $(PL_RUNTIME) pltools.o -o $@ \ -L$(TOPDIR)/lib/compat $(LNCLUDE) \ -lcompat $(PL_LIBS) -liberty -lm endif pgpl: $(TOPDIR)/bin/pgpl $(TOPDIR)/bin/pgpl: $(PL_CMD) *.pl $(PL_CMD) -g banner -o $@ -c mkc.pl chptbl.pl:: cd .. ; $(MAKE) chptbl.pl $(LN) ../chptbl.pl . depend: @echo no, do not depend here