From 59f2a246b9bc03d72a573a9acfc6731bb896e7d9 Mon Sep 17 00:00:00 2001 From: Kranklyboy Date: Mon, 16 Apr 2018 17:37:31 +0200 Subject: [PATCH] Initial commit --- .gitignore | 11 +++++++++++ Makefile | 16 ++++++++++++++++ websh.c | 13 +++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 websh.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f55a62f --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +websh +*.o +*.json +*.sh +.vimrc +*.gch +Doxyfile +html/ +latex/ +*.tgz +*.pdf diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..493f5d0 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CC = gcc +CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c + +all: server client + +server: server.o common.h + $(CC) $^ -o $@ + +client: client.o common.h + $(CC) $^ -o $@ + +%.o: %.c + $(CC) $(CFLAGS) $^ + +.PHONY clean: + rm -f common.h.ghc client.o server.o client server diff --git a/websh.c b/websh.c new file mode 100644 index 0000000..50e3eeb --- /dev/null +++ b/websh.c @@ -0,0 +1,13 @@ +/** + * @file websh.c + * @author Tobias Eidelpes + * @date 2018-04-16 + * + * @brief Formats program output for the web. + */ + +int main(int argc, char *argv[]) +{ + + return 0; +}