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.

22 lines
338 B

CC = g++
LINK = `sdl-config --libs` -lGL -lGLU -lSDL_image -Wl,-rpath,.
OBJ = `sdl-config --cflags` -Wall -c -I../libsegl
LIBS = libsegl.so.1
prog: life.o gameoflife.o
$(CC) $(LINK) $+ -o GameOfLife $(LIBS)
run: prog
./GameOfLife
life.o: gameoflife.o
%.o: %.cpp %.h
$(CC) $(OBJ) $<
%.o: %.cpp
$(CC) $(OBJ) $<
clean:
rm -f *.o