Commit c289737c authored by Jean-Claude BAU's avatar Jean-Claude BAU

SNMP: Generate automatically the file oids.txt which contains all OIDs

parent 255e0399
......@@ -69,11 +69,16 @@ MIBS = WR-SWITCH-MIB.txt
OBJECTS = $(SOURCES:.c=.o)
all: $(SHLIB)
OID_FILE = oids.txt
all: $(SHLIB) $(OID_FILE)
$(SHLIB): $(OBJECTS)
$(CC) $(LDFLAGS) $^ -o $@
$(OID_FILE): $(MIBS)
snmptranslate -Pu -Tz -M /usr/share/snmp/mibs -m ./$(MIBS) >$(OID_FILE)
clean:
rm -f $(SHLIB) $(OBJECTS)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment