some
authorMart Lubbers <mart@martlubbers.net>
Wed, 23 Mar 2016 17:47:10 +0000 (18:47 +0100)
committerMart Lubbers <mart@martlubbers.net>
Wed, 23 Mar 2016 17:47:10 +0000 (18:47 +0100)
modelchecker/Makefile
modelchecker/mc.c [new file with mode: 0644]
modelchecker/sokoban.h

index 4f09f85..e527f22 100644 (file)
@@ -1,10 +1,14 @@
 PROGRAM:=main
-OBJS:=sokoban.o
+OBJS:=sokoban.o mc.o
 
-CFLAGS=-O3 -Wextra -Wall -Werror -fno-strict-aliasing -std=gnu11
-CFLAGS+=-I./sylvan/src
+CFLAGS=-O3 -Wextra -Wall -Werror -fno-strict-aliasing -std=gnu11 \
+       -I./sylvan/src
 
-all: $(OBJS) $(PROGRAM) 
+$(PROGRAM): $(PROGRAM).c $(OBJS)
+       $(CC) $(CFLAGS) -o $@ $<
+       
+%.o: %.c %.h
+       $(CC) $(CFLAGS) -c -o $@ $<
 
 clean:
        $(RM) -v $(PROGRAM) $(OBJS)
diff --git a/modelchecker/mc.c b/modelchecker/mc.c
new file mode 100644 (file)
index 0000000..09bfc54
--- /dev/null
@@ -0,0 +1,2 @@
+#include "mc.h"
+
index e69de29..95dc079 100644 (file)
@@ -0,0 +1,15 @@
+#ifndef SOKOBAN_H
+#define SOKOBAN_H
+
+typedef enum {FREE, WALL, BOX, TARGET, AGENT, TARGAGENT, TARGBOX} sokoban_tile;
+
+struct sokoban_screen {
+       int x;
+       int y;
+       sokoban_tile tile;
+       sokoban_screen *next;
+};
+
+sokoban_screen *parse(FILE *stream);
+
+#endif