added experimental chat server

This commit is contained in:
Andrew Pamment
2017-03-20 11:37:56 +10:00
parent ac729c1f69
commit 7bb688b32f
14 changed files with 459 additions and 127 deletions

22
utils/magichat/Makefile Normal file
View File

@@ -0,0 +1,22 @@
CC=cc
DEPS = main.c
OBJ = main.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
JSMN = ../../deps/jsmn/libjsmn.a
all: magichat
$(JSMN):
cd ../../deps/jsmn/ && $(MAKE)
magichat: $(OBJ) $(JSMN)
$(CC) -o magichat -o $@ $^ $(CFLAGS) $(LDFLAGS)
.PHONY: clean
clean:
rm -f $(OBJ) magichat