gameoflife-3d/Makefile

22 lines
338 B
Makefile
Raw Normal View History

2009-01-21 01:15:42 +01:00
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