mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 19:09:59 +00:00
Changes: * Added method to get mac and ip address for OSX. Current Linux method of query via SIOCGIFCONF doesn't work. Added code to read via getifaddrs() API. * Put non OSX specific code under #ifdef flags. * Removed few linker libraries which are not required (lcares and lrt). * Fixed many warnings. Tested on: OSX 10.12
18 lines
650 B
Makefile
18 lines
650 B
Makefile
CC=$(TARGET)g++
|
|
|
|
.PHONY: clean
|
|
.DEFAULT_GOAL=dialclient
|
|
|
|
includes = $(wildcard *.h)
|
|
OBJS := main.cpp DialServer.cpp DialDiscovery.cpp DialConformance.cpp DialClientInput.cpp
|
|
|
|
# You may not need all these libraries. This example uses a build of curl that needs crypto, ssl, cares, and zlib
|
|
dialclient: $(OBJS) ${includes}
|
|
$(CC) -Wall -Werror -g $(OBJS) $(INCLUDES) $(LDFLAGS) -ldl -lpthread -lcurl -lz -lcrypto -lssl -o dialclient
|
|
|
|
dialclient_debug: $(OBJS) ${includes}
|
|
$(CC) -DDEBUG -Wall -Werror -g $(OBJS) $(INCLUDES) $(LDFLAGS) -ldl -lpthread -lcurl -lz -lcrypto -lssl -lcares -o dialclient_debug
|
|
|
|
clean:
|
|
rm -f *.o dialclient
|