cmd: start work on an ifquery command

This commit is contained in:
Ariadne Conill 2020-07-18 04:49:22 -06:00
parent 84a01ffdc4
commit 817963b586
3 changed files with 84 additions and 1 deletions

View file

@ -7,12 +7,23 @@ LIBIFUPDOWN_SRC = \
libifupdown/interface.c
LIBIFUPDOWN_OBJ = ${LIBIFUPDOWN_SRC:.c=.o}
LIBIFUPDOWN_LIB = libifupdown.a
CMDS = \
ifquery
LIBS = ${LIBIFUPDOWN_LIB}
IFQUERY_SRC = cmd/ifquery.c
IFQUERY_OBJ = ${IFQUERY_SRC:.c=.o}
ifquery: ${LIBS} ${IFQUERY_OBJ}
${CC} -o $@ ${IFQUERY_OBJ} ${LIBS}
libifupdown.a: ${LIBIFUPDOWN_OBJ}
ar -rcs $@ ${LIBIFUPDOWN_OBJ}
all: libifupdown.a
all: libifupdown.a ${CMDS}
clean:
rm -f ${LIBIFUPDOWN_OBJ}