forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
all: libsuspend_api.so
 
dbus_suspend_api.o: dbus_suspend_api.c
   $(CC) -c dbus_suspend_api.c $(CFLAGS) -fPIC -g -Wall
 
libsuspend_api.so: dbus_suspend_api.o
   $(CC) -o $@ dbus_suspend_api.o $(CFLAGS) -fPIC -shared
 
.PHONY: clean
 
clean:
   rm -f *.o *~ libsuspend_api.so
 
.PHONY: install
 
install:
   cp -f dbus_suspend_api.h $(HOST_DIR)/aarch64-rockchip-linux-gnu/sysroot/usr/include/
   cp -f libsuspend_api.so $(HOST_DIR)/aarch64-rockchip-linux-gnu/sysroot/usr/lib/
   cp -f libsuspend_api.so $(TARGET_DIR)/usr/lib/
   cp -f 00rockchip-suspend $(TARGET_DIR)/usr/lib/pm-utils/sleep.d/
 
.PHONY: uninstall
 
uninstall:
   rm -f $(TARGET_DIR)/usr/lib/libsuspend_api.so
   rm -f $(TARGET_DIR)/usr/lib/pm-utils/sleep.d/00rockchip-suspend