Hardware authentication for Linux using ordinary USB Flash Drives.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
DEBUG := no
|
|
SRCS := src/test.c \
|
|
src/conf.c \
|
|
src/log.c \
|
|
src/xpath.c \
|
|
src/hal.c \
|
|
src/pad.c \
|
|
src/volume.c \
|
|
src/device.c
|
|
OBJS := $(SRCS:.c=.o)
|
|
NAME := pusb_check
|
|
CC := gcc
|
|
CFLAGS := -Wall `pkg-config --cflags hal` `pkg-config --cflags libxml-2.0`
|
|
LDFLAGS := `pkg-config --libs hal-storage` `pkg-config --libs libxml-2.0`
|
|
|
|
ifeq (yes, ${DEBUG})
|
|
CFLAGS := ${CFLAGS} -ggdb
|
|
endif
|
|
|
|
all : $(NAME)
|
|
$(NAME) : $(OBJS)
|
|
$(CC) -o $(NAME) $(LDFLAGS) $(OBJS)
|
|
|
|
%.o : %.c
|
|
${CC} -c ${CFLAGS} $< -o $@
|
|
|
|
clean :
|
|
rm -f $(OBJS)
|