aboutsummaryrefslogtreecommitdiff
path: root/plugins/monster
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-06-09 17:31:27 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-06-09 17:31:27 +0200
commitfd234aeb2f90757d2115cdabfc488e78d87d0f46 (patch)
tree6e7b5a1a6961530fce956d3c0151c39728571f07 /plugins/monster
parent73471f4fb7ada04ae3a6a041f3cb2475782144a7 (diff)
downloaddungeon_game-fd234aeb2f90757d2115cdabfc488e78d87d0f46.tar.xz
Fix plugin target
Diffstat (limited to 'plugins/monster')
-rw-r--r--plugins/monster/Makefile6
-rw-r--r--plugins/monster/monster.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/monster/Makefile b/plugins/monster/Makefile
index 1ba16c5..28edde8 100644
--- a/plugins/monster/Makefile
+++ b/plugins/monster/Makefile
@@ -1,2 +1,4 @@
-monster.so: monster.c ../game/game.h
- cc -g -shared -fpic -o monster.so monster.c
+plugins/monster/monster.so: plugins/monster/monster.c plugins/game/game.h
+ cc -g -shared -fpic -o plugins/monster/monster.so plugins/monster/monster.c
+
+PLUGINS := ${PLUGINS} plugins/monster/monster.so
diff --git a/plugins/monster/monster.c b/plugins/monster/monster.c
index 167de88..6cb14ff 100644
--- a/plugins/monster/monster.c
+++ b/plugins/monster/monster.c
@@ -1,6 +1,6 @@
#include <stdlib.h>
#include <stddef.h>
-#include "dungeon.h"
+#include "../game/game.h"
static struct entity monster;