From 31795c220747bee8558f2b30450c4aca7502a427 Mon Sep 17 00:00:00 2001 From: shemminger Date: Tue, 1 Jun 2004 17:50:22 +0000 Subject: Fix libraries on older systems (no lsysfs). --- brctl/Makefile.in | 13 +++---------- doc/Makefile | 2 +- 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 -- cgit v1.2.3