summaryrefslogtreecommitdiff
path: root/Makefile
blob: d6ce077b9a3c0e4ebd9fba7931c9bd2d085d7be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FILENAME = pluginmanager

all: all_plugins executable
	@echo "> MAKING ALL..."

test: all
	@echo "> TESTING PLUGIN1..."
	./$(FILENAME) ./plugin1.so
	@echo "> TESTING PLUGIN2..."
	./$(FILENAME) ./plugin2.so
	@echo "> TESTING PLUGIN3..."
	./$(FILENAME) ./plugin3.so

clean:
	@echo "> CLEANING..."
	rm $(FILENAME)
	rm *.so

all_plugins:
	@echo "> MAKING PLUGINS..."
	$(CXX) $(CXXFLAGS) -shared -fPIC -o plugin1.so plugins/plugin_test1.cpp
	$(CXX) $(CXXFLAGS) -shared -fPIC -o plugin2.so plugins/plugin_test2.cpp
	$(CXX) $(CXXFLAGS) -shared -fPIC -o plugin3.so plugins/plugin_test3.cpp

executable:
	$(CXX) $(CXXFLAGS) -o $(FILENAME) main.cpp -ldl
..