Added empty template for rewire and wirekits
This commit is contained in:
commit
d4cab5ae04
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
rewire
|
||||||
|
*.so
|
||||||
24
Makefile
Normal file
24
Makefile
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
REWIRE_SRC_DIR := src
|
||||||
|
REWIRE_INCLUDE_DIR := include
|
||||||
|
REWIRE_SRC := $(wildcard $(REWIRE_SRC_DIR)/*.cpp)
|
||||||
|
REWIRE_CC := g++
|
||||||
|
REWIRE_CFLAGS := -std=c++20 -I $(REWIRE_INCLUDE_DIR) -Wall -fPIC -fvisibility=hidden -rdynamic
|
||||||
|
|
||||||
|
WIREKIT_CC := g++
|
||||||
|
WIREKIT_CFLAGS := -std=c++20 -I $(REWIRE_INCLUDE_DIR) -Wall -fno-rtti -Wno-literal-suffix -fPIC -shared
|
||||||
|
|
||||||
|
all: rewire wirekits
|
||||||
|
|
||||||
|
rewire: $(REWIRE_SRC)
|
||||||
|
$(REWIRE_CC) $(REWIRE_CFLAGS) -o $@ $(REWIRE_SRC)
|
||||||
|
|
||||||
|
wirekits: example.so darkrose.so
|
||||||
|
|
||||||
|
example.so: $(wildcard wirekits/example/*.cpp)
|
||||||
|
$(WIREKIT_CC) $(WIREKIT_CFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
darkrose.so: $(wildcard wirekits/darkrose/*.cpp)
|
||||||
|
$(WIREKIT_CC) $(WIREKIT_CFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f rewire example.so darkrose.so
|
||||||
6
src/main.cpp
Normal file
6
src/main.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main(int argc, char** argv) {
|
||||||
|
std::cout << "Hello world!" << std::endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
0
wirekits/darkrose/README.md
Normal file
0
wirekits/darkrose/README.md
Normal file
1
wirekits/darkrose/main.cpp
Normal file
1
wirekits/darkrose/main.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
||||||
0
wirekits/example/README.md
Normal file
0
wirekits/example/README.md
Normal file
0
wirekits/example/main.cpp
Normal file
0
wirekits/example/main.cpp
Normal file
Loading…
Reference in New Issue
Block a user