Hello everyone, I've been having some issues with makefiles. My school uses a Linux server and such, so I have to reference some files in a directory on the network, as well as my own files. Anyway, here is my makefile, comments removed:
Also, the tabs for the compiling parts have been removed, simply to make it look nice, but they are there.Code:FREYS_DIR = /afs/umbc.edu/users/f/r/frey/pub/CMSC341/Proj4 PROJ = Proj4 CC = /usr/local/bin/g++ CCLFAGS = -g -ansi -Wall -I . SOURCES = \ Proj4.cpp \ kary_heap.h PROVIDED_SOURCES = $(FREYS_DIR)/CPUTimer.cpp OBJECTS = Proj4.o CPUTimer.o $(PROJ): $(FREYS_DIR)/$(PROJ) $(OBJECTS) $(CC) $(CCFLAGS) -o $(PROJ) $(OBJECTS) Proj4.o: $(FREYS_DIR)/Proj4.cpp kary_heap.h CPUTimer.cpp CPUTimer.h $(CC) $(CCFLAGS) -c $(FREYS_DIR)/Proj4.cpp CPUTimer.o: CPUTimer.cpp CPUTimer.h $(CC) $(CCFLAGS) -c CPUTimer.cpp
Anyway, the error I get is as follows:
Can anyone see what I'm doing wrong? I must admit, I'm not too experienced with Makefiles and I have yet to receive a response from the faculty.Code:make: *** No rule to make target `/afs/umbc.edu/users/f/r/frey/pub/CMSC341/Proj4/Proj4.cpp', needed by `/afs/umbc.edu/users/f/r/frey/pub/CMSC341/Proj4/Proj4'. Stop.