From fd234aeb2f90757d2115cdabfc488e78d87d0f46 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 9 Jun 2021 17:31:27 +0200 Subject: Fix plugin target --- plugins/apple/Makefile | 6 ++++-- plugins/apple/apple.c | 2 +- plugins/game/Makefile | 6 ++++-- plugins/game/game.c | 2 +- plugins/monster/Makefile | 6 ++++-- plugins/monster/monster.c | 2 +- 6 files changed, 15 insertions(+), 9 deletions(-) (limited to 'plugins') diff --git a/plugins/apple/Makefile b/plugins/apple/Makefile index 8e3ccca..33c3303 100644 --- a/plugins/apple/Makefile +++ b/plugins/apple/Makefile @@ -1,2 +1,4 @@ -apple.so: apple.c ../game/game.h - cc -g -shared -fpic -o apple.so apple.c +plugins/apple/apple.so: plugins/apple/apple.c plugins/game/game.h + cc -g -shared -fpic -o plugins/apple/apple.so plugins/apple/apple.c + +PLUGINS := ${PLUGINS} plugins/apple/apple.so diff --git a/plugins/apple/apple.c b/plugins/apple/apple.c index 7c2de77..dd8a559 100644 --- a/plugins/apple/apple.c +++ b/plugins/apple/apple.c @@ -1,6 +1,6 @@ #include #include -#include "dungeon.h" +#include "../game/game.h" static struct entity apple; diff --git a/plugins/game/Makefile b/plugins/game/Makefile index 83714da..b8472f6 100644 --- a/plugins/game/Makefile +++ b/plugins/game/Makefile @@ -1,2 +1,4 @@ -game.so: game.c game.h - cc -g -shared -fpic -o game.so game.c -lm -lpthread +plugins/game/game.so: plugins/game/game.c plugins/game/game.h + cc -g -shared -fpic -o plugins/game/game.so plugins/game/game.c -lm -lpthread + +PLUGINS := ${PLUGINS} plugins/game/game.so diff --git a/plugins/game/game.c b/plugins/game/game.c index f0496b8..b283214 100644 --- a/plugins/game/game.c +++ b/plugins/game/game.c @@ -11,7 +11,7 @@ #include #include #include -#include "dungeon.h" +#include "game.h" bool running = true; 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 #include -#include "dungeon.h" +#include "../game/game.h" static struct entity monster; -- cgit v1.2.3