Guys, For the little programming I do, I always just type the gcc command for each file. But... I've got a project that was growing and it uses gsl for some file and not for others so I thought I would experiment with a basic Makefile. I'm talking *simple*. However, on my first go, I'm getting that darn: make: *** No rule to make target `tst_isolv.c', needed by `tst_isolv.o'. Stop. error. The 2 object makefile I'm experimenting with is: CC = gcc CFLAGS = -Wall -lm -lgsl -lgslcblas OBJECTS = isolv_state.o tst_isolv.o tstim : $(OBJECTS) $(CC) -o tstim $(OBJECTS) $(CFLAGS) isolv_state.o : isolv_state.c isolv_state.h $(CC) -c isolv_state.c tst_isolv.o : tst_isolv.c isolv_state.h $(CC) -c tst_isolv.c clean: rm -f tstim isolv_state.o tst_isolv.o All the files are in the current directory and yes the recipes are preceded by 'tab' characters: 22:50 alchemy:~/dev/prg/ccpp/lib/gsl> ls -1 isolv_state.c isolv_state.h isolv_state.o Makefile tst-isolv.c tst-isolv.o Running make gives: 22:54 alchemy:~/dev/prg/ccpp/lib/gsl> make make: *** No rule to make target `tst_isolv.c', needed by `tst_isolv.o'. Stop. Huh? Why is it looking for a target to make tst_isolv.c'? Why doesn't it just do what I told it to and use 'gcc -c tst_isolv.c'? I know the issue is some 'forest for the trees' thing that I'm completely missing... So help a brother out -- what's the trick? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org