OSDN Git Service

[Activity HAL] Separation of common macros
[android-x86/hardware-intel-libsensors.git] / Makefile
index dbe8702..8389e51 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,19 @@
+USE_INTEL_SENSOR_HAL := true
+include Android.mk
+
 LIBHARDWARE?=../../../../hardware/libhardware/
-CFLAGS=-DLOG_TAG=\"sens\" -I$(LIBHARDWARE)include/ -I./linux -fPIC
+CFLAGS=-DLOG_TAG=\"sens\" -I$(LIBHARDWARE)include/ -I./linux -fPIC -Wall
 LDFLAGS=-ldl -lpthread -lm -lrt
 
-all: sensors-hal.so sens
+all: sensors.gmin.so sens
 
 linux_src = linux/log.o
 
 sens: sens.o $(linux_src)
        cc -o $@ $^ $(LDFLAGS)
 
-hal_src = entry.c enumeration.c control.c description.c utils.c transform.c compass-calibration.c matrix-ops.c \
-
-sensors-hal.so: $(patsubst %.c,%.o,$(hal_src) $(linux_src))
+sensors.gmin.so: $(patsubst %.c,%.o,$(src_files) $(linux_src))
        cc -o $@ $^ $(LDFLAGS) -shared
 
 clean:
-       -rm $(patsubst %.c,%.o,$(hal_src) $(linux_src) sens.c) sens sensors-hal.so 2>/dev/null
+       -rm $(patsubst %.c,%.o,$(src_files) $(linux_src) sens.c) sens sensors.gmin.so 2>/dev/null