summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2b5bee5..ec3f588 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,12 @@
-all: sayhello sayhello-spanish.so sayhello-swedish.so sayhello-stderr.so
+all: sayhello libsayhello-spanish.so libsayhello-swedish.so libsayhello-stderr.so
sayhello: sayhello.c
$(CC) -o $@ $(CFLAGS) $<
+sayhello-direct: sayhello.c libsayhello-swedish.so
+ $(CC) -o $@ -DDISABLE_PLUGINS $(CFLAGS) $< -L$(PWD) -lsayhello-swedish
+
libsayhello-%.so: libsayhello-%.c
$(CC) -o $@ $(CFLAGS) -shared $<