Leisner.Henr@XEROX.COM (Marty) (12/14/89)
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