Skip to content

Commit 8a14167

Browse files
committed
ansi c do NOT support single line comment
1 parent ac6e730 commit 8a14167

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CFLAGS?=-std=gnu99 -ansi -pedantic -O4 -Wall -fPIC
1+
CFLAGS?=-std=gnu99 -pedantic -O4 -Wall -fPIC
22

33
default: websocket_parser.o
44

@@ -7,5 +7,9 @@ websocket_parser.o: websocket_parser.c websocket_parser.h
77
solib: websocket_parser.o
88
$(CC) -shared -Wl,-soname,libwebsocket_parser.so -o libwebsocket_parser.so websocket_parser.o
99

10+
alib: websocket_parser.o
11+
ar rcu libwebsocket_parser.a $<
12+
ranlib libwebsocket_parser.a
13+
1014
clean:
11-
rm -f *.o *.so
15+
rm -f *.o *.so *.a

0 commit comments

Comments
 (0)