feat: functional makefile and tmp test program

This commit is contained in:
hexlocation 2025-02-07 13:05:42 +01:00
parent f4e9293e94
commit b054bb09ab
Signed by: hex
GPG key ID: A19EFFAAF8C00FCF
5 changed files with 38 additions and 5 deletions

1
.gitignore vendored
View file

@ -86,3 +86,4 @@ dkms.conf
*.out *.out
*.app *.app
renga

3
Jamfile Normal file
View file

@ -0,0 +1,3 @@
Binary = Renga ;
Compiler = GCC ;

View file

@ -1,8 +1,16 @@
BINARY=renga BINARY=renga
CPP=g++ CPP=g++
HOST=192.168.122.254
all: build all: build
build: build:
$(CPP) src/main.cpp -o $(BINARY) $(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"

View file

@ -4,5 +4,19 @@ Renga, a XMPP client designed for Haiku
## todo ## todo
- [ ] make haiku-os compatible - [x] make haiku-os compatible
- [ ] everything else - [ ] 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
```

View file

@ -1,7 +1,14 @@
#include "iostream" #include "iostream"
#include <cstring>
#include <cwchar>
#include <string>
int main() int main() {
{ std::string msg = "hello world";
std::cout << "imagine a world...\n"; for (int i = 0; i < msg.length(); i++) {
return 0; std::cout << msg[i];
if (i != msg.length() - 1 && msg[i+1] != ' ' && msg[i] != ' ')
std::cout << '-';
}
return 0;
} }