makefile 581 B

12345678910111213141516171819202122232425262728293031
  1. CC = g++
  2. CFLAGS = -Wall
  3. All: execute
  4. execute: main.o Calculator.o ActiveArty.o Container.o
  5. $(CC) $(CFLAGS) main.o ActiveArty.o Container.o Calculator.o -o execute
  6. main.o: main.cpp
  7. $(CC) $(CFLAGS) -c main.cpp -o main.o
  8. Calculator.o: Calculator.cpp
  9. $(CC) $(CFLAGS) -c Calculator.cpp -o Calculator.o
  10. Container.o: Container.cpp
  11. $(CC) $(CFLAGS) -c Container.cpp -o Container.o
  12. ActiveArty.o: ActiveArty.cpp
  13. $(CC) $(CFLAGS) -c ActiveArty.cpp -o ActiveArty.o
  14. clean:
  15. @echo "Cleaning up..."
  16. rm execute
  17. rm -rf *.o execute
  18. rebuild: clean execute
  19. run: execute
  20. ./execute