I am migrating old C++ OpenGL code from an old (circa Fedora 4) install to a new Dell workstation running Red Hat Enterprise 5. (I get the same error in Fedora 10).
When I "make" the code I get:
make: *** No rule to make target `Makefile.dependencies', needed by `depend'. Stop.
Any help I can get with the original Makefile is appreciated:
Code:CC = g++ CFLAGS = -g -Wall -D__USE_FIXED_PROTOTYPES__ -w LDFLAGS = -lGL -lGLU -lglut -lm -lX11 LIBDIR = -L/usr/local/lib -L/usr/lib -L/usr/X11R6/lib INCDIR = -I/usr/include -I/usr/X11R6/include SRCS = flightdetail20.cc landdetail55.cc comm001.cc texture.cc constants.cc comm_variables.cc flight_variables.cc 3ds.cc OBJS = $(SRCS:.cc=.o) PROGS = teapotdetail default : $(PROGS) $(PROGS) : depend $(OBJS) $(CC) -o $@ $(OBJS) $(LIBDIR) $(LDFLAGS) /usr/lib/lib3ds.a depend:: Makefile.dependencies $(SRCS) $(HDRS) Makefile.dependencies:: $(SRCS) $(HDRS) $(CC) $(CFLAGS) $(INCDIR) -MM $(SRCS) > Makefile.dependencies -include Makefile.dependencies clean : /bin/rm -f *.o a.out core $(PROGS) Makefile.dependencies *~ #* TAGS : $(SRCS) $(HDRS) etags -t $(SRC8iS) $(HDRS)