diff --git a/utils/magichat/Makefile b/utils/magichat/Makefile index 1565eea..9fb3b91 100644 --- a/utils/magichat/Makefile +++ b/utils/magichat/Makefile @@ -1,22 +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 +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 diff --git a/utils/magichat/Makefile.sunos b/utils/magichat/Makefile.sunos index 255b0b2..8a6be9e 100644 --- a/utils/magichat/Makefile.sunos +++ b/utils/magichat/Makefile.sunos @@ -1,22 +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=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) -lsocket - -.PHONY: clean - -clean: - rm -f $(OBJ) magichat + +.PHONY: clean + +clean: + rm -f $(OBJ) magichat