From 8a14167d170c43a2bbe7cbab80f8dad18574d32a Mon Sep 17 00:00:00 2001 From: changnet <940477049@qq.com> Date: Wed, 25 Oct 2017 12:02:34 +0800 Subject: [PATCH] ansi c do NOT support single line comment --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 073bc9f..c914c1c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS?=-std=gnu99 -ansi -pedantic -O4 -Wall -fPIC +CFLAGS?=-std=gnu99 -pedantic -O4 -Wall -fPIC default: websocket_parser.o @@ -7,5 +7,9 @@ websocket_parser.o: websocket_parser.c websocket_parser.h solib: websocket_parser.o $(CC) -shared -Wl,-soname,libwebsocket_parser.so -o libwebsocket_parser.so websocket_parser.o +alib: websocket_parser.o + ar rcu libwebsocket_parser.a $< + ranlib libwebsocket_parser.a + clean: - rm -f *.o *.so + rm -f *.o *.so *.a