1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 LOCAL_SRC_FILES:= \ 5 dhcpclient.c \ 6 dhcpmsg.c \ 7 dhcp_utils.c \ 8 ifc_utils.c \ 9 packet.c 10 11 LOCAL_SHARED_LIBRARIES := \ 12 libcutils 13 14 # need "-lrt" on Linux simulator to pick up clock_gettime 15 ifeq ($(TARGET_SIMULATOR),true) 16 ifeq ($(HOST_OS),linux) 17 LOCAL_LDLIBS += -lrt -lpthread 18 endif 19 endif 20 21 LOCAL_MODULE:= libnetutils 22 23 include $(BUILD_SHARED_LIBRARY) 24