diff options
author | Bill Nottingham <notting@redhat.com> | 2006-04-10 18:52:57 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-04-10 18:52:57 +0000 |
commit | 8d63b86b08ca3eb8445fa57766e662d6393f3a70 (patch) | |
tree | 6599931c09b18097c528ecd331dbead7777082b9 /src/Makefile | |
parent | 4889957e4c7de9be5960c02401b105d42ee4334a (diff) | |
download | initscripts-8d63b86b08ca3eb8445fa57766e662d6393f3a70.tar initscripts-8d63b86b08ca3eb8445fa57766e662d6393f3a70.tar.gz initscripts-8d63b86b08ca3eb8445fa57766e662d6393f3a70.tar.bz2 initscripts-8d63b86b08ca3eb8445fa57766e662d6393f3a70.tar.xz initscripts-8d63b86b08ca3eb8445fa57766e662d6393f3a70.zip |
apply changes from FC5 branch - automatically rename devices on startup
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index c691870b..78276fad 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,7 +1,7 @@ CFLAGS+=$(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE PROGS=usernetctl doexec netreport testd usleep ipcalc initlog \ - getkey ppp-watch consoletype genhostid + getkey ppp-watch consoletype genhostid rename_device PPPWATCH_OBJS=ppp-watch.o shvar.o INITLOG_OBJS=initlog.o process.o USLEEP_OBJS=usleep.o @@ -14,7 +14,7 @@ clean: rm -f $(PROGS) *.o install: - mkdir -p $(ROOT)/bin $(ROOT)/usr/sbin $(ROOT)$(mandir)/man{1,8} $(ROOT)/etc + mkdir -p $(ROOT)/bin $(ROOT)/usr/sbin $(ROOT)$(mandir)/man{1,8} $(ROOT)/etc $(ROOT)/lib/udev install -m 755 doexec $(ROOT)/bin/doexec install -m 755 usleep $(ROOT)/bin/usleep install -m 4755 usernetctl $(ROOT)/usr/sbin/usernetctl @@ -25,6 +25,7 @@ install: install -m 755 getkey $(ROOT)/sbin/getkey install -m 755 ppp-watch $(ROOT)/sbin/ppp-watch install -m 755 consoletype $(ROOT)/sbin/consoletype + install -m 755 rename_device $(ROOT)/lib/udev/rename_device install -m 644 initlog.1 $(ROOT)$(mandir)/man1 install -m 644 genhostid.1 $(ROOT)$(mandir)/man1 install -m 644 doexec.1 $(ROOT)$(mandir)/man1 @@ -70,5 +71,8 @@ shvar.o: shvar.c ppp-watch.o: ppp-watch.c $(CC) $(CFLAGS) `pkg-config glib-2.0 --cflags` -c ppp-watch.c -o ppp-watch.o +rename_device: rename_device.c + $(CC) $(CFLAGS) `pkg-config glib-2.0 --cflags` -o $@ $< -Wl,-Bstatic `pkg-config glib-2.0 --libs` -Wl,-Bdynamic + kmodule: kmodule.o $(CC) $(LDFLAGS) -o $@ $< -Wl,-Bstatic -lpopt -Wl,-Bdynamic -lkudzu -lpci |