1 --- ./Makefile.in.~1~ 2014-04-07 16:12:08.000000000 +0200
2 +++ ./Makefile.in 2016-11-19 23:20:28.106965778 +0100
9 REM_DRV = /usr/sbin/rem_drv
10 ADD_DRV = /usr/sbin/add_drv
11 MODLOAD = /usr/sbin/modload
12 MODUNLOAD = /usr/sbin/modunload
19 CONFIGURE_FILES = Makefile config.status config.cache config.h config.log
22 $(RM) -f *.o brdg brdgadm
25 +brdg.o: $(SRCDIR)/brdg.c
26 $(CC) -c $(KCFLAGS) $< -o $@
29 $(LD) $(LD_FLAGS) -dn -r $^ -o $@
32 +brdgadm.o: $(SRCDIR)/brdgadm.c
33 $(CC) -c $(CFLAGS) $< -o $@
35 -dlpiutil.o: dlpiutil.c dlpiutil.h
36 +dlpiutil.o: $(SRCDIR)/dlpiutil.c $(SRCDIR)/dlpiutil.h
37 $(CC) -c $(CFLAGS) $< -o $@
39 brdgadm: brdgadm.o dlpiutil.o
40 $(CC) $(CFLAGS) -lsocket -lnsl $^ -o $@
43 - -$(INSTALL) -m 0755 -o root -g sys brdg $(MOD_PATH)
44 - $(INSTALL) -d -m 0755 -o root -g bin $(BINDIR)
45 - -$(INSTALL) -m 0755 -o root -g bin brdgadm $(BINDIR)
47 + $(INSTALL) -d -m 0755 $(DESTDIR)$(MOD_PATH) || $(MKDIR_P) $(DESTDIR)$(MOD_PATH)
48 + -$(INSTALL) -m 0755 brdg $(DESTDIR)$(MOD_PATH)
49 + $(INSTALL) -d -m 0755 $(DESTDIR)$(BINDIR) || $(MKDIR_P) $(DESTDIR)$(BINDIR)
50 + -$(INSTALL) -m 0755 brdgadm $(DESTDIR)$(BINDIR)
51 + -[ -z "$(DESTDIR)" ] && $(MODLOAD) brdg
54 - -$(MODUNLOAD) -i `modinfo | awk '/brdg/{ print $1 }'`
55 - -$(RM) $(MOD_PATH)/brdg
56 - -$(RM) $(BINDIR)/brdgadm
57 + -[ -z "$(DESTDIR)" ] && -$(MODUNLOAD) -i `modinfo | awk '/brdg/{ print $1 }'`
58 + -[ -z "$(DESTDIR)" ] && $(RM) $(MOD_PATH)/brdg
59 + -[ -z "$(DESTDIR)" ] && $(RM) $(BINDIR)/brdgadm
62 rm -f $(CONFIGURE_FILES)