summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMax Christian Pohle2016-08-23 02:46:27 +0200
committerMax Christian Pohle2016-08-23 02:46:27 +0200
commit0f595e076f03c02b366901e8d3c5cc0c50681108 (patch)
tree4c3e241e1b66d027f95d03d846c37f01c030fa8b /Makefile
downloadpluginmanager-master.tar.bz2
pluginmanager-master.zip
generic plugin manager example, fully workingHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d6ce077
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
1FILENAME = pluginmanager
2
3all: all_plugins executable
4 @echo "> MAKING ALL..."
5
6test: all
7 @echo "> TESTING PLUGIN1..."
8 ./$(FILENAME) ./plugin1.so
9 @echo "> TESTING PLUGIN2..."
10 ./$(FILENAME) ./plugin2.so
11 @echo "> TESTING PLUGIN3..."
12 ./$(FILENAME) ./plugin3.so
13
14clean:
15 @echo "> CLEANING..."
16 rm $(FILENAME)
17 rm *.so
18
19all_plugins:
20 @echo "> MAKING PLUGINS..."
21 $(CXX) $(CXXFLAGS) -shared -fPIC -o plugin1.so plugins/plugin_test1.cpp
22 $(CXX) $(CXXFLAGS) -shared -fPIC -o plugin2.so plugins/plugin_test2.cpp
23 $(CXX) $(CXXFLAGS) -shared -fPIC -o plugin3.so plugins/plugin_test3.cpp
24
25executable:
26 $(CXX) $(CXXFLAGS) -o $(FILENAME) main.cpp -ldl
..