Skip to content

Commit

Permalink
Merge pull request #1 from changnet/master
Browse files Browse the repository at this point in the history
ansi c do NOT support single line comment
  • Loading branch information
bzick authored Oct 25, 2017
2 parents ac6e730 + 8a14167 commit 0e325ce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CFLAGS?=-std=gnu99 -ansi -pedantic -O4 -Wall -fPIC
CFLAGS?=-std=gnu99 -pedantic -O4 -Wall -fPIC

default: websocket_parser.o

Expand All @@ -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

0 comments on commit 0e325ce

Please sign in to comment.