aboutsummaryrefslogtreecommitdiff
path: root/plugins/CppnExplorer/Makefile
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 19:04:34 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 19:16:14 +0100
commite6ab4a8ed100d5d5b7611c74cf3ccd556f1f1d71 (patch)
tree129cf13c2f9b3eae54402300db4570815789a02a /plugins/CppnExplorer/Makefile
Initial commitHEADmaster
Diffstat (limited to 'plugins/CppnExplorer/Makefile')
-rw-r--r--plugins/CppnExplorer/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/CppnExplorer/Makefile b/plugins/CppnExplorer/Makefile
new file mode 100644
index 0000000..0d31499
--- /dev/null
+++ b/plugins/CppnExplorer/Makefile
@@ -0,0 +1,19 @@
+LIBRARY := lib/libCppnExplorer.a
+SOURCES := $(wildcard src/*.cpp)
+OBJECTS := $(patsubst src/%.cpp,obj/%.o,$(SOURCES))
+DEPS := $(patsubst %.o,%.d,$(OBJECTS))
+CFLAGS := -c -O3 -Wall -std=c++11 -MMD -Iinclude -I../../include -IC:/SFML/include
+LFLAGS := rvs
+
+all: $(OBJECTS)
+ ar $(LFLAGS) $(LIBRARY) $(OBJECTS)
+
+-include $(DEPS)
+
+$(OBJECTS): $(patsubst obj/%.o,src/%.cpp,$@)
+ g++ $(CFLAGS) $(patsubst obj/%.o,src/%.cpp,$@) -o $@
+
+clean:
+ del lib\*.a
+ del obj\*.o
+ del obj\*.d