Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. TARGET = libcutils.a
  2. INCLUDES += -I. -I./include/
  3. #-I$(KERNEL_DIR)/drivers/staging/android/ \
  4. commonSources := \
  5. array.c \
  6. hashmap.c \
  7. native_handle.c \
  8. buffer.c \
  9. socket_inaddr_any_server.c \
  10. socket_local_client.c \
  11. socket_local_server.c \
  12. socket_loopback_client.c \
  13. socket_loopback_server.c \
  14. socket_network_client.c \
  15. sockets.c \
  16. config_utils.c \
  17. cpu_info.c \
  18. load_file.c \
  19. list.c \
  20. open_memstream.c \
  21. strdup16to8.c \
  22. strdup8to16.c \
  23. record_stream.c \
  24. process_name.c \
  25. qsort_r_compat.c \
  26. threads.c \
  27. sched_policy.c \
  28. iosched_policy.c \
  29. str_parms.c \
  30. properties.c \
  31. #delete source file
  32. #commonSources += \
  33. atomic.c.arm \
  34. commonSources += \
  35. abort_socket.c \
  36. fs.c \
  37. selector.c \
  38. tztime.c \
  39. multiuser.c \
  40. zygote.c
  41. SRCS := $(commonSources) \
  42. android_reboot.c \
  43. debugger.c \
  44. klog.c \
  45. mq.c \
  46. partition_utils.c \
  47. qtaguid.c \
  48. uevent.c \
  49. misc_rw.c \
  50. memory.c
  51. myCFLAGS += -DHAVE_PTHREADS -DANDROID_SMP=1 -DHAVE_LIBC_SYSTEM_PROPERTIES=1 -DHAVE_SYS_SOCKET_H=1 -D_GNU_SOURCE
  52. OBJS = $(SRCS:.c=.o)
  53. %.o: %.c
  54. $(CC) $(CFLAGS) $(myCFLAGS) $(INCLUDES) -c -o $@ $<
  55. $(TARGET): $(OBJS)
  56. ar r $@ $(OBJS)
  57. all:$(TARGET)
  58. clean:
  59. rm -rf $(TARGET) *.o *.a *~