summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-04-19 11:59:45 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-19 11:59:45 +0200
commit478a4c0a89224f3b8b0641fd5480b81090259f15 (patch)
tree000837b2f08174ee4d070cb707e39b3a100a1918 /Makefile
parent096fcd1d98841d931799958bdba6601c788f1ab1 (diff)
downloadsayhello-master.tar.bz2
sayhello-master.tar.xz
allow build without pluginsHEADmaster
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 $<