Makefile 190 B

123456789101112131415
  1. CXX=g++
  2. CFLAGS=-std=c++17 -g
  3. LIBS=
  4. VPATH=src
  5. OBJ = cpu.o \
  6. main.o
  7. all: $(OBJ)
  8. $(CXX) $(CFLAGS) $(OBJ) -o multibox $(LIBS)
  9. clean:
  10. rm *.o && rm multibox
  11. %.o: %.cpp
  12. $(CXX) $(CFLAGS) -c $<