3a03e3c59d
b64_pton and b64_ntop functions are not portable and cannot be found in all C library implementations (e.g. uClibc, musl). Since c-websockify already has explicit dependency to openssl it can be used to replace b64_pton/ntop with versions that are portable without introducing too much additional code or dependencies.
15 lines
240 B
Makefile
15 lines
240 B
Makefile
TARGETS=websockify
|
|
CFLAGS += -fPIC
|
|
|
|
all: $(TARGETS)
|
|
|
|
websockify: websockify.o websocket.o
|
|
$(CC) $(LDFLAGS) $^ -lssl -lcrypto -o $@
|
|
|
|
websocket.o: websocket.c websocket.h
|
|
websockify.o: websockify.c websocket.h
|
|
|
|
clean:
|
|
rm -f websockify *.o
|
|
|