Porting from sokoban/caixes the makefile system.
--- a/Makefile Sun May 07 13:32:51 2006 +0200
+++ b/Makefile Sun May 07 13:33:25 2006 +0200
@@ -1,20 +1,7 @@
CC=gcc
-# OPT
-#CFLAGS=-march=athlon-xp -pipe -O3 -Wall
-
# DEBUG
-CFLAGS=-pedantic -Wall -g -pg
+CFLAGS=-pedantic -Wall -g -pg #-DDEBUG
LDFLAGS=-pg -Wall
-all: sokosol
-
-sokosol: map.o sokosol.o os.o algorithm.o
-
-map.c: general.h
-sokosol.c: general.h
-os.c: general.h
-algorithm.c: general.h
-
-clean:
- rm -f sokosol *.o
+include Makefile.deps
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.deps Sun May 07 13:33:25 2006 +0200
@@ -0,0 +1,12 @@
+
+all: sokosol
+
+sokosol: map.o sokosol.o os.o algorithm.o
+
+map.o: map.c general.h
+sokosol.o: sokosol.c general.h
+os.o: os.c general.h
+algorithm.o: algorithm.c general.h
+
+clean:
+ rm -f sokosol *.o
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.opt Sun May 07 13:33:25 2006 +0200
@@ -0,0 +1,6 @@
+CC=gcc
+
+# OPT
+CFLAGS=-march=athlon-xp -pipe -O3 -Wall
+
+include Makefile.deps