Jamal Hadi Salim | 65018ae | 2006-08-08 12:13:34 -0700 | [diff] [blame] | 1 | GENLOBJ=genl.o |
| 2 | |
| 3 | include ../Config |
| 4 | |
| 5 | GENLMODULES := |
| 6 | GENLMODULES += ctrl.o |
| 7 | |
| 8 | GENLOBJ += $(GENLMODULES) |
| 9 | |
| 10 | GENLLIB := |
| 11 | |
Stephen Hemminger | a18fa24 | 2006-10-19 13:13:20 -0700 | [diff] [blame] | 12 | LDFLAGS += -Wl,-export-dynamic |
| 13 | LDLIBS += -lm -ldl |
Jamal Hadi Salim | 65018ae | 2006-08-08 12:13:34 -0700 | [diff] [blame] | 14 | |
| 15 | all: genl |
| 16 | |
| 17 | genl: $(GENLOBJ) $(LIBNETLINK) $(LIBUTIL) $(GENLLIB) |
| 18 | |
| 19 | install: all |
Stephen Hemminger | a18fa24 | 2006-10-19 13:13:20 -0700 | [diff] [blame] | 20 | install -m 0755 genl $(DESTDIR)$(SBINDIR) |
Jamal Hadi Salim | 65018ae | 2006-08-08 12:13:34 -0700 | [diff] [blame] | 21 | |
| 22 | clean: |
| 23 | rm -f $(GENLOBJ) $(GENLLIB) genl |