summaryrefslogtreecommitdiff
path: root/libsysfs/Makefile
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-07-18 20:08:00 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:39 -0700
commit070f54223f66490e9d25719c495e074f77da8985 (patch)
tree661053b837250c926db524f25f3e048e252cf8a6 /libsysfs/Makefile
parent469c7cff3b1432aa7a8786c08ee9a64caec2ba27 (diff)
[PATCH] added libsysfs code from sysutils-0.1.1-071803 release
Diffstat (limited to 'libsysfs/Makefile')
-rw-r--r--libsysfs/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/libsysfs/Makefile b/libsysfs/Makefile
new file mode 100644
index 0000000000..cf07a842b6
--- /dev/null
+++ b/libsysfs/Makefile
@@ -0,0 +1,44 @@
+# Makefile for libsysfs.a
+# Copyright (c) International Business Machines Corp., 2003
+
+CC=gcc
+
+H_INCLUDE=../include
+LIB_INCLUDE=.
+OBJS=sysfs_bus.o sysfs_class.o sysfs_device.o sysfs_dir.o sysfs_driver.o \
+ sysfs_utils.o
+
+# Install directory
+
+# Options
+CFLAGS=-O2 -Wall -ansi -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
+
+clean:
+ $(RM) *.o *~ core $(LIBSYSFS)