2020-07-18 07:58:24 +00:00
|
|
|
CFLAGS := -ggdb3 -O2 -Wall -I.
|
|
|
|
|
|
|
|
|
|
|
|
LIBIFUPDOWN_SRC = \
|
2020-07-18 09:08:47 +00:00
|
|
|
libifupdown/list.c \
|
2020-07-18 10:24:53 +00:00
|
|
|
libifupdown/dict.c \
|
|
|
|
libifupdown/interface.c
|
2020-07-18 09:08:47 +00:00
|
|
|
|
2020-07-18 07:58:24 +00:00
|
|
|
LIBIFUPDOWN_OBJ = ${LIBIFUPDOWN_SRC:.c=.o}
|
2020-07-18 10:49:22 +00:00
|
|
|
LIBIFUPDOWN_LIB = libifupdown.a
|
2020-07-18 07:58:24 +00:00
|
|
|
|
|
|
|
|
2020-07-18 10:49:22 +00:00
|
|
|
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}
|
|
|
|
|
2020-07-18 07:58:24 +00:00
|
|
|
libifupdown.a: ${LIBIFUPDOWN_OBJ}
|
|
|
|
ar -rcs $@ ${LIBIFUPDOWN_OBJ}
|
|
|
|
|
2020-07-18 10:49:22 +00:00
|
|
|
all: libifupdown.a ${CMDS}
|
2020-07-18 07:58:24 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${LIBIFUPDOWN_OBJ}
|