feat: functional makefile and tmp test program
This commit is contained in:
parent
f4e9293e94
commit
b054bb09ab
5 changed files with 38 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -86,3 +86,4 @@ dkms.conf
|
|||
*.out
|
||||
*.app
|
||||
|
||||
renga
|
||||
|
|
3
Jamfile
Normal file
3
Jamfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
Binary = Renga ;
|
||||
Compiler = GCC ;
|
||||
|
8
Makefile
8
Makefile
|
@ -1,8 +1,16 @@
|
|||
BINARY=renga
|
||||
CPP=g++
|
||||
HOST=192.168.122.254
|
||||
|
||||
all: build
|
||||
|
||||
build:
|
||||
$(CPP) src/main.cpp -o $(BINARY)
|
||||
|
||||
run:
|
||||
@echo "tranferring over all files..."
|
||||
@scp -r ./* user@$(HOST):~/dev
|
||||
@echo "executing on remote host..."
|
||||
ssh user@$(HOST) "cd dev;echo '### compiling';make;echo '### running';./renga"
|
||||
|
||||
|
||||
|
|
16
README.md
16
README.md
|
@ -4,5 +4,19 @@ Renga, a XMPP client designed for Haiku
|
|||
|
||||
## todo
|
||||
|
||||
- [ ] make haiku-os compatible
|
||||
- [x] make haiku-os compatible
|
||||
- [ ] everything else
|
||||
|
||||
## run
|
||||
|
||||
To run on a Linux system, spin up a HaikuOS development VM and get its IP address reachable from the host.
|
||||
Execute the following command on the host:
|
||||
```bash
|
||||
make run HOST=1.1.1.1
|
||||
```
|
||||
|
||||
If you are doing development work on the local system, use:
|
||||
```bash
|
||||
make build
|
||||
./renga
|
||||
```
|
||||
|
|
15
src/main.cpp
15
src/main.cpp
|
@ -1,7 +1,14 @@
|
|||
#include "iostream"
|
||||
#include <cstring>
|
||||
#include <cwchar>
|
||||
#include <string>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "imagine a world...\n";
|
||||
return 0;
|
||||
int main() {
|
||||
std::string msg = "hello world";
|
||||
for (int i = 0; i < msg.length(); i++) {
|
||||
std::cout << msg[i];
|
||||
if (i != msg.length() - 1 && msg[i+1] != ' ' && msg[i] != ' ')
|
||||
std::cout << '-';
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue