I can't seem to figure out why a certain C program won't compile under linux with this 
Makefile. It compiles fine under Unix (Sun). Do I need to change this Makefile in any 
way for it to work under Linux (RH5.2)? I tried removing the colons from ":=", but to 
no avail. Any suggestions would be most appreciated.

Thanks,
Mark

Makefile:

OBJ:=main.o myalloc.o choleski.o
PROG:=demo1

CPPFLAGS:= -I.
CFLAGS:= -g

default: $(PROG)

$(OBJ) : %.o : %.c
        gcc -o $@ $(CPPFLAGS) $(CFLAGS) -c $^

$(PROG): $(OBJ)
        gcc -o $@ $^ -lm -lc






HotBot - Search smarter.
http://www.hotbot.com

Reply via email to