makefile 276 B

12345678910111213141516
  1. VPATH = src
  2. CPP = g++
  3. CFLAGS = -O0 -std=gnu++11 -fpermissive -g
  4. OBJ = log.o main.o mem.o cpu.o cpu_arith.o cpu_io.o cpu_jump.o cpu_misc.o cpu_mov.o keyboard.o
  5. tietokone: $(OBJ)
  6. $(CPP) $(OBJ) -o "tietokone"
  7. all: tietokone
  8. clean:
  9. rm *.o
  10. %.o: %.cpp
  11. $(CPP) $(CFLAGS) -c $<