CPP = gcc OBJ = testmain.o matrixes.o onewaylist.o graphalgorithm.o LINKOBJ = testmain.o matrixes.o onewaylist.o graphalgorithm.o BIN = graph1 CXXFLAGS = -ansi -pedantic -Wall RM = rm -f all: $(BIN) clean: ${RM} $(OBJ) $(BIN) $(BIN): $(OBJ) $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) graphalgorithm.o: graphalgorithm.c $(CPP) -c graphalgorithm.c -o graphalgorithm.o $(CXXFLAGS) onewaylist.o: onewaylist.c $(CPP) -c onewaylist.c -o onewaylist.o $(CXXFLAGS) matrixes.o: matrixes.c $(CPP) -c matrixes.c -o matrixes.o $(CXXFLAGS) testmain.o: testmain.c $(CPP) -c testmain.c -o testmain.o $(CXXFLAGS)