You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
240 B

  1. CXX = g++
  2. CXXFLAGS = -g -Wall -std=c++17
  3. LDFLAGS = -lpthread
  4. SRC = main.cpp object.cpp world.cpp
  5. OBJ = ${SRC:.cpp=.o}
  6. all: main
  7. .o: ${OBJ}
  8. ${CXX} -c ${CXXFLAGS} $<
  9. main: ${OBJ}
  10. ${CXX} -o $@ ${OBJ} ${LDFLAGS}
  11. clean:
  12. rm -f main ${OBJ}