Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,55 @@
*.DS_Store


# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2021 Eric O Meehan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

31 changes: 18 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
# Create top level static library and all sub-libraries
all: Main DataStructures Networking Systems

###############################################################################
# MARK debug_all
###############################################################################
debug: DEBUG = -g

debug: all

###############################################################################
# MARK: MAIN
Expand All @@ -37,22 +42,22 @@ DataStructures: DataStructuresSub
DataStructuresSub: Node LinkedList Queue BinarySearchTree Entry Dictionary

Node:
gcc -c DataStructures/Common/Node.c
gcc $(DEBUG) -c DataStructures/Common/Node.c

LinkedList:
gcc -c DataStructures/Lists/LinkedList.c
gcc $(DEBUG) -c DataStructures/Lists/LinkedList.c

Queue:
gcc -c DataStructures/Lists/Queue.c
gcc $(DEBUG) -c DataStructures/Lists/Queue.c

BinarySearchTree:
gcc -c DataStructures/Trees/BinarySearchTree.c
gcc $(DEBUG) -c DataStructures/Trees/BinarySearchTree.c

Entry:
gcc -c DataStructures/Dictionary/Entry.c
gcc $(DEBUG) -c DataStructures/Dictionary/Entry.c

Dictionary:
gcc -c DataStructures/Dictionary/Dictionary.c
gcc $(DEBUG) -c DataStructures/Dictionary/Dictionary.c



Expand All @@ -68,19 +73,19 @@ Networking: NetworkingSub
NetworkingSub: DataStructuresSub SystemsSub Server Client HTTPRequest HTTPServer PeerToPeer

Server:
gcc -c Networking/Nodes/Server.c
gcc $(DEBUG) -c Networking/Nodes/Server.c

Client:
gcc -c Networking/Nodes/Client.c
gcc $(DEBUG) -c Networking/Nodes/Client.c

PeerToPeer:
gcc -c Networking/Nodes/PeerToPeer.c
gcc $(DEBUG) -c Networking/Nodes/PeerToPeer.c

HTTPServer:
gcc -c Networking/Nodes/HTTPServer.c
gcc $(DEBUG) -c Networking/Nodes/HTTPServer.c

HTTPRequest:
gcc -c Networking/Protocols/HTTPRequest.c
gcc $(DEBUG) -c Networking/Protocols/HTTPRequest.c



Expand All @@ -96,10 +101,10 @@ Systems: SystemsSub
SystemsSub: ThreadPool Files

ThreadPool:
gcc -c Systems/ThreadPool.c
gcc $(DEBUG) -c Systems/ThreadPool.c

Files:
gcc -c Systems/Files.c
gcc $(DEBUG) -c Systems/Files.c


###############################################################################
Expand Down
1 change: 1 addition & 0 deletions Networking/Nodes/Client.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ struct Client client_constructor(int domain, int service, int protocol, int port
// Instantiate a client object.
struct Client client;
client.domain = domain;
client.service = service;
client.port = port;
client.interface = interface;
// Establish a socket connection.
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ If you save the libeom directory to your default include location, there is no n
make
```

This will generate a static library for libeom as a whole, as well as static libraries for each of the sub-modules individually. If you only wish to compile the top-level static library, use:
This will generate a static library for libeom as a whole, as well as static libraries for each of the sub-modules individually.
If you want to have debug information use:

```
make debug
```

This is similar to just running ```make``` but all the library and submodules will have debug information.


If you only wish to compile the top-level static library, use:

```
make Main
Expand Down