> Can anybody tell me how to make a *simple* makefile? Or a URL where I can > find more info? The manpages aren't very clear, and *way* too extensive. > > I have a small project with 3 source code files, and I don't want to compile > all of them every time. > OBJS=foo.o bar.o foobar.o
all: target target: $(OBJS) gcc -o target $(OBJS) %.o: %.c include.h gcc -O2 -c $< just try it. may work ...