diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/main.c | 1 | ||||
-rw-r--r-- | client/makefile | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/client/main.c b/client/main.c new file mode 100644 index 0000000..76e8197 --- /dev/null +++ b/client/main.c @@ -0,0 +1 @@ +int main() { return 0; } diff --git a/client/makefile b/client/makefile new file mode 100644 index 0000000..dcba6f3 --- /dev/null +++ b/client/makefile @@ -0,0 +1,27 @@ +CC = gcc +LD = gcc +RM = rm -f +CFLAGS = +EXECNAME = main + +SOURCES := $(wildcard *.c) +HEADERS := $(wildcard *.h) +OBJECTS := $(patsubst %.c,%.o, $(SOURCES)) + +all: main + +.o: + $(CC) -c $(CFLAGS) $< + +$(EXECNAME): $(OBJECTS) + $(CC) $(OBJECTS) -o $(EXECNAME) + +clean: + $(RM) $(EXECNAME) *.o + +format: + clang-format -i $(SOURCES) $(HEADERS) + +compile_commands: clean + bear -- make + |