aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshemminger <shemminger>2004-06-01 17:50:22 +0000
committershemminger <shemminger>2004-06-01 17:50:22 +0000
commit31795c220747bee8558f2b30450c4aca7502a427 (patch)
treef46266cefeb9003df3d8ac8af3391b6ce205a8ed
parent28c5adbc86ce120f3b266896379a70a9fb7f5de0 (diff)
downloadandroid_external_brctl-31795c220747bee8558f2b30450c4aca7502a427.tar.gz
android_external_brctl-31795c220747bee8558f2b30450c4aca7502a427.tar.bz2
android_external_brctl-31795c220747bee8558f2b30450c4aca7502a427.zip
Fix libraries on older systems (no lsysfs).
-rw-r--r--brctl/Makefile.in13
-rw-r--r--doc/Makefile2
2 files changed, 4 insertions, 11 deletions
diff --git a/brctl/Makefile.in b/brctl/Makefile.in
index 2e91455..93618ec 100644
--- a/brctl/Makefile.in
+++ b/brctl/Makefile.in
@@ -2,10 +2,10 @@
KERNEL_HEADERS=-I@KERNEL_HEADERS@
CC=@CC@
-CFLAGS= -Wall -g @CFLAGS@
+CFLAGS= -Wall @CFLAGS@
LDFLAGS=@LDFLAGS@
INCLUDE=-I../libbridge $(KERNEL_HEADERS)
-LIBS= -L ../libbridge -lbridge -lsysfs
+LIBS= -L ../libbridge -lbridge @LIBS@
prefix=@prefix@
exec_prefix=@exec_prefix@
@@ -38,16 +38,9 @@ install: $(PROGRAMS)
brctl: $(brctl_OBJECTS) ../libbridge/libbridge.a
$(CC) $(LDFLAGS) $(brctl_OBJECTS) $(LIBS) -o brctl
-# brctld is for debug only, not production use
-brctld: $(brctld_OBJECTS)
- $(CC) $(brctld_OBJECTS) $(LIBS) -o brctld
-
%.o: %.c brctl.h
$(CC) $(CFLAGS) $(INCLUDE) -c $<
clean:
- rm -f *.o
- rm -f brctl
- rm -f brctld
- rm -f core
+ rm -f *.o brctl core
diff --git a/doc/Makefile b/doc/Makefile
index cc5ac85..011b86e 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,6 +1,6 @@
DESTDIR=
-KERNEL_HEADERS=-I/home/shemminger/linux-2.6/include
+KERNEL_HEADERS=-I/usr/src/linux/include
INSTALL=install -s