summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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
..