# MakefilePortable

#
#	Sokoban
#	License: GPL
#	Author: Andre Schnabel
#	E-Mail: thefrogs@web.de
#	Homepage: http://www.semler-service.de/andre/
#

OBJS = objs/main.o objs/common.o objs/game.o objs/splash.o

$(BIN): $(OBJS)
	$(CC) -o $(BIN) $(OBJS) $(COMPFLAGS) $(LINKFLAGS)

objs/main.o: main.c
	$(CC) $(COMPFLAGS) -o $@ -c $?

objs/common.o: common.c
	$(CC) $(COMPFLAGS) -o $@ -c $?

objs/game.o: game.c
	$(CC) $(COMPFLAGS) -o $@ -c $?

objs/splash.o: splash.c
	$(CC) $(COMPFLAGS) -o $@ -c $?

clean:
	rm objs/*.o
