added experimental chat server
This commit is contained in:
22
utils/magichat/Makefile
Normal file
22
utils/magichat/Makefile
Normal 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
|
Reference in New Issue
Block a user