diff options
author | Max Christian Pohle | 2016-08-23 02:46:27 +0200 |
---|---|---|
committer | Max Christian Pohle | 2016-08-23 02:46:27 +0200 |
commit | 0f595e076f03c02b366901e8d3c5cc0c50681108 (patch) | |
tree | 4c3e241e1b66d027f95d03d846c37f01c030fa8b /Makefile | |
download | pluginmanager-0f595e076f03c02b366901e8d3c5cc0c50681108.tar.bz2 pluginmanager-0f595e076f03c02b366901e8d3c5cc0c50681108.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
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 @@ | |||
1 | FILENAME = pluginmanager | ||
2 | |||
3 | all: all_plugins executable | ||
4 | @echo "> MAKING ALL..." | ||
5 | |||
6 | test: 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 | |||
14 | clean: | ||
15 | @echo "> CLEANING..." | ||
16 | rm $(FILENAME) | ||
17 | rm *.so | ||
18 | |||
19 | all_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 | |||
25 | executable: | ||
26 | $(CXX) $(CXXFLAGS) -o $(FILENAME) main.cpp -ldl | ||