3D Game of Life implementation in c++
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.

Makefile 338B

123456789101112131415161718192021
  1. CC = g++
  2. LINK = `sdl-config --libs` -lGL -lGLU -lSDL_image -Wl,-rpath,.
  3. OBJ = `sdl-config --cflags` -Wall -c -I../libsegl
  4. LIBS = libsegl.so.1
  5. prog: life.o gameoflife.o
  6. $(CC) $(LINK) $+ -o GameOfLife $(LIBS)
  7. run: prog
  8. ./GameOfLife
  9. life.o: gameoflife.o
  10. %.o: %.cpp %.h
  11. $(CC) $(OBJ) $<
  12. %.o: %.cpp
  13. $(CC) $(OBJ) $<
  14. clean:
  15. rm -f *.o