tege@sics.se (04/04/89)
The command gnumake-3.45 cp.sun3 outputs rm -f *.o cp.n cp.z cp.seq cp.sun3 cp.sun4 make CFLAGS=-O cp.n make: Fatal error: Unknown option `--' gmake: *** Error 1 with the following input file. Maybe you hide something that is sent to an inferior make, when printing on the screen, something that /bin/make cannot handle? /bin/make is used in the recursive make that fails, since GNU make is called "gmake" here. # Makefile for cp -- file copying # Copyright (C) 1989 Free Software Foundation. # 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 1, 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. # Written by Torbjorn Granlund, Sweden (tege@sics.se). install = /usr/local/bin CC = gcc CFLAGS = -g -Wall LDFLAGS = LDFLAGS2 = -Bdynamic -n -s CCFLAGS = -O OBJ = cp.o cp-hash.o cp-aux.o cp.z : $(OBJ) $(CC) -o cp.z $(CFLAGS) $(OBJ) $(LDFLAGS) cp.n : $(OBJ) cc -o cp.n $(OBJ) $(LDFLAGS2) cp.sun3 : clean make CFLAGS=$(CCFLAGS) cp.n cp cp.n cp.sun3 cp.sun4 : clean make CFLAGS=$(CCFLAGS) cp.n cp cp.n cp.sun4 cp.seq : clean make CFLAGS="-I$(HOME)/sequent/include $(CCFLAGS)" LDFLAGS2="-lseq -s" cp.n cp cp.n cp.seq cp-aux.o : cp-aux.c cp.h cp-hash.o : cp-hash.c cp.h cp.o : cp.c cp.h install : cp.n install -c cp.n $(install)/copy clean : rm -f *.o cp.n cp.z cp.seq cp.sun3 cp.sun4 NAME = cp ginstall: rcp $(NAME).sun3 osiris:/usr/local/bin/copy rcp $(NAME).sun3 nuada:/usr/local/bin/copy rcp $(NAME).sun3 re:/usr/local/bin/copy rcp $(NAME).sun3 bast:/export/exec/sun3/local/bin/copy rcp $(NAME).sun4 bast:/usr/local/bin/copy rcp $(NAME).sun4 hapi:/usr/local/bin/copy rcp $(NAME).sun4 bugs:/usr/local/bin/copy rcp $(NAME).seq echnaton:/usr/local/bin/copy