Код: Выделить всё
CXX = g++
CXXFLAGS = -Wall -g
all: comment \
test
comment:
@echo ------Starting Build Process-----------------
test: main.o car.o student.o house.o
$(CXX) $(CXXFLAGS) -o test main.o car.o student.o house.o
main.o: student.h house.h main.cpp
$(CXX) $(CXXFLAGS) -c main.cpp
car.o: car.h
student.o: student.h car.h
house.o: house.h
clean:
rm -rf *.o test
Подробнее здесь: https://stackoverflow.com/questions/265 ... inux-and-g