mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-27 07:29:41 +00:00
- pass CFLAGS and LDFLAGS in case one needs to use -m32 - link to libcrypto for _ERR_print_errors_fp - __THROW is non-standard define it to nothing by default - use b64_ntop and b64_pton instead of mangled versions, OSX doesn't mangle them in the same way - access() takes two arguments! Signed-off-by: François Revol <revol@free.fr>
12 lines
298 B
Makefile
12 lines
298 B
Makefile
wsproxy: wsproxy.o websocket.o md5.o
|
|
$(CC) $(LDFLAGS) $^ -l ssl -lcrypto -l resolv -o $@
|
|
|
|
websocket.o: websocket.c websocket.h md5.h
|
|
wsproxy.o: wsproxy.c websocket.h
|
|
md5.o: md5.c md5.h
|
|
$(CC) $(CFLAGS) -c -o $@ $*.c -DHAVE_MEMCPY -DSTDC_HEADERS
|
|
|
|
clean:
|
|
rm -f wsproxy wsproxy.o websocket.o md5.o
|
|
|