🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1670

problem with make 3.57

#1670
From: Marty
Date: Wed, 13 Dec 1989 16:21
60 lines
1775 bytes
I have a makefile that runs on the Make on sunOS 4 but won't run under GNU Make.

I don't use old style suffix rules and don't really understand what's wrong.

LIBS	= -lsuntool -lsunwindow -lpixrect -l$(SUNVIEW_PLUS)

OFILES	= events.o images.o keymap.o primitives.o startup.o tie.o window.o
HFILES	= ice.h
MANPAGE	= ice.$(MANEXT)

.SUFFIXES: .c .o .manpage .$(MANEXT)

.c.o: $(HFILES)
	$(CC) -c $(OGFLAG) -I$(INCLUDE_DIR) $<



.manpage.$(MANEXT):
	cp $*.manpage $(MANDIR)/$*.$(MANEXT)

ice: $(HFILES) compile
	@echo "ice compiled"


compile: $(OFILES)
	$(CC) $(OFILES) $(LIBS) $(CFLAGS) $(OGFLAG) -o ice -L$(LIBDIR)


Running gmake I get:
mlsun% make
make: *** No way to make target `events.o'.  Stop.

Running /bin/make I get:
mlsun% /bin/make -n
cc -c  -I events.c
cc -c  -I images.c
cc -c  -I keymap.c
cc -c  -I primitives.c
cc -c  -I startup.c
cc -c  -I tie.c
cc -c  -I window.c
cc events.o images.o keymap.o primitives.o startup.o tie.o window.o -lsuntool -l
sunwindow -lpixrect -l   -o ice -L
echo "ice compiled"

	
I solved the problem by erasing the suffix rules, having
CFLAGS= $(OGFLAT) -I$(INCLUDE_DIR)
and letting the built in rules go to work.

But there appears to be a problem.


marty
ARPA:	leisner.henr@xerox.com
GV:  leisner.henr
NS:  leisner:wbst139:xerox
UUCP:	hplabs!arisia!leisner
 
Technical Details
Message-ID: <891213-082139-1882@Xerox>
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!bu-cs!lll-winken!brutus.cs.uiuc.edu!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!XEROX.COM!Leisner.Henr

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!philmtl!uunet!bu-cs!lll-winken!brutus.cs.uiuc.edu!samsung!cs.utexas.edu!tut.cis.ohio-state.edu!XEROX.COM!Leisner.Henr
From: Leisner.Henr@XEROX.COM (Marty)
Newsgroups: gnu.utils.bug
Subject: problem with make 3.57
Message-ID: <891213-082139-1882@Xerox>
Date: 13 Dec 89 16:21:47 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 60