mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
fe3fe3b29f
Here's the patch applying the latest libsysfs. - adds the latest libsysfs code to udev * new code includes dlist implementation, a generic linked list implementation. Needed our own because LGPL * rearranged structures * provided more functions for accessing directory and attributes - gets rid of ->directory->path references in namedev.c - replaces sysfs_get_value_from_attributes with sysfs_get_classdev_attr
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
# Makefile for libsysfs.a
|
|
# Copyright (c) International Business Machines Corp., 2003
|
|
|
|
H_INCLUDE=.
|
|
LIB_INCLUDE=.
|
|
OBJS=sysfs_bus.o sysfs_class.o sysfs_device.o sysfs_dir.o sysfs_driver.o \
|
|
sysfs_utils.o dlist.o
|
|
|
|
# Install directory
|
|
|
|
# Options
|
|
CFLAGS=-O2 -Wall -g
|
|
|
|
# sysfs library
|
|
LIBSYSFS=libsysfs.a
|
|
|
|
RM=rm -f
|
|
|
|
libsysfs.a: $(OBJS)
|
|
$(AR) cru $(LIBSYSFS) $(OBJS)
|
|
$(RANLIB) $(LIBSYSFS)
|
|
|
|
sysfs_bus.o: sysfs_bus.c
|
|
$(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_bus.c
|
|
|
|
sysfs_class.o: sysfs_class.c
|
|
$(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_class.c
|
|
|
|
sysfs_device.o: sysfs_device.c
|
|
$(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_device.c
|
|
|
|
sysfs_dir.o: sysfs_dir.c
|
|
$(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_dir.c
|
|
|
|
sysfs_driver.o: sysfs_driver.c
|
|
$(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_driver.c
|
|
|
|
sysfs_utils.o: sysfs_utils.c
|
|
$(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c sysfs_utils.c
|
|
|
|
dlist.o: dlist.c
|
|
$(CC) -I$(H_INCLUDE) -I$(LIB_INCLUDE) $(CFLAGS) -c dlist.c
|
|
|
|
clean:
|
|
$(RM) *.o *~ core $(LIBSYSFS)
|