Compare commits

...

7 Commits

Author SHA1 Message Date
435d46c610
updated make file 2022-07-26 09:16:03 -06:00
61a30b8713
adding build and bin directories 2022-07-25 16:04:37 -06:00
7f2a84a496
renaming a file 2022-07-25 16:04:29 -06:00
82698525c9
adding empty make file 2022-07-25 15:55:26 -06:00
be0799c76f
adding main file 2022-07-25 15:55:09 -06:00
e302a8355a
adding a changelog file 2022-07-25 15:55:01 -06:00
0ad09c0e8f
added git meta files, updated readme 2022-07-25 15:54:46 -06:00
10 changed files with 140 additions and 2 deletions

8
.gitattributes vendored Normal file
View File

@ -0,0 +1,8 @@
* text=auto
*.c diff=c
*.cpp diff=cpp
*.h diff=h
*.hpp diff=hpp
CHANGELOG.md export-ignore

60
.gitignore vendored Normal file
View File

@ -0,0 +1,60 @@
### Project Specific
# Files
*.d
*.slo
*.lo
*.o
*.ko
*.obj
*.elf
*.ilk
*.map
*.exp
*.gch
*.pch
*.so
*.so.*
*.dylib
*.dll
*.mod
*.smod
*.lai
*.la
*.a
*.lib
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
*.su
*.idb
*.pdb
*.mod*
*.cmd
modules.order
Module.symvers
Mkfile.old
dkms.conf
# Directories
.dSYM/
.tmp_versions/
### Editor Specific
# Files
/*.sublime-project
/*.sublime-workspace
# Directories
/.idea
/.vscode
### System Specific
# Files
.DS_Store
Thumbs.db
# Directories
__MACOSX

16
CHANGELOG.md Normal file
View File

@ -0,0 +1,16 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
-
### Changed
-
### Removed
-

32
Makefile Normal file
View File

@ -0,0 +1,32 @@
C_STANDARD=c17
DEBUG_DIR=build/Debug
BIN_DEBUG_DIR=bin/Debug
RELEASE_DIR=build/Release
BIN_RELEASE_DIR=bin/Release
#INCLUDE_PATH="-I/path/to/arbitrary/src"
#LIB_PATH="-L/path/to/library/include"
#LINKER_FLAGS=-lGL
## debug:
## g++ -std=c++14 -Wall -fPIC -pg -g $(INCLUDE_PATH) $(LIB_PATH) -c src/Main.cpp -o $(DEBUG_DIR)/Main.o
## g++ -o $(BIN_DEBUG_DIR)/ratatoskr-messenger-server $(DEBUG_DIR)/Main.o $(LINKER_FLAGS)
## release:
## g++ -std=c++14 -Wall -fPIC -O2 $(INCLUDE_PATH) $(LIB_PATH) -c src/Main.cpp -o $(RELEASE_DIR)/Main.o
## g++ -o $(BIN_RELEASE_DIR)/ratatoskr-messenger-server $(RELEASE_DIR)/Main.o -s $(LINKER_FLAGS)
debug:
gcc -ansi -std=$(C_STANDARD) -Wall -fPIC -pg -c src/Main.c -o $(DEBUG_DIR)/Main.o
gcc -o $(BIN_DEBUG_DIR)/ratatoskr-messenger-server $(DEBUG_DIR)/Main.o
release:
gcc -ansi -std=$(C_STANDARD) -Wall -fPIC -O2 -c src/Main.c -o $(RELEASE_DIR)/Main.o
gcc -o $(BIN_RELEASE_DIR)/ratatoskr-messenger-server $(RELEASE_DIR)/Main.o
.PHONY: clean
clean:
rm -rf $(DEBUG_DIR)/*
rm -rf $(BIN_DEBUG_DIR)/*
rm -rf $(RELEASE_DIR)/*
rm -rf $(BIN_RELEASE_DIR)/*

View File

@ -1,3 +1,7 @@
# cpp-messenger-server
# Ratatoskr - C Messenger Server
An exercise in C++ to make a messenger server akin to MSN/Yahoo/AOL Messenger.
An exercise in C/C++ to make a messenger server akin to MSN/Yahoo/AOL Messenger.
### Ratatoskr
A simple messenger in the form of a squirrel that travels between the eagle atop Yggdrassil and the dragon Nidhoggr at the roots of Yggdrassil.

2
bin/Debug/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

2
bin/Release/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

2
build/Debug/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

2
build/Release/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

10
src/Main.c Normal file
View File

@ -0,0 +1,10 @@
/**
* src/Main.c
*
* The main entrypoint for the program.
*/
int main (int argc, char **argv) {
return 0;
}