From c2352ee043546b518f69c615a1ece778e942e650 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 20 Jan 2022 23:47:53 -0500 Subject: initial commit yay start of a state machine and also learning sockets --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1b79565 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +CC=gcc +CFLAGS=-I. -static +SRCS=src/main.c src/login.c src/server.c src/data.c +BIN=cmud + +%.o: %.c + $(CC) -c -o $@ $< $(CFLAGS) + +dev: $(SRCS) + $(CC) -o $(BIN)-devel $(SRCS) $(LFLAGS) -g + +main: $(SRCS) + $(CC) -o $(BIN) $(SRCS) $(LFLAGS) $(CFLAGS) + +dist: main + tar czvf $(BIN).tar.gz $(BIN) + +clean: + rm $(BIN)* + +run: dev + ./cmud-devel -- cgit v1.2.3