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.

27 lines
540 B

18 years ago
  1. DEBUG := no
  2. SRCS := src/test.c \
  3. src/conf.c \
  4. src/log.c \
  5. src/xpath.c \
  6. src/hal.c \
  7. src/pad.c \
  8. src/volume.c \
  9. src/device.c
  10. OBJS := $(SRCS:.c=.o)
  11. NAME := pusb_check
  12. CC := gcc
  13. CFLAGS := -Wall `pkg-config --cflags hal` `pkg-config --cflags libxml-2.0`
  14. LDFLAGS := `pkg-config --libs hal-storage` `pkg-config --libs libxml-2.0`
  15. ifeq (yes, ${DEBUG})
  16. CFLAGS := ${CFLAGS} -ggdb
  17. endif
  18. all : $(NAME)
  19. $(NAME) : $(OBJS)
  20. $(CC) -o $(NAME) $(LDFLAGS) $(OBJS)
  21. %.o : %.c
  22. ${CC} -c ${CFLAGS} $< -o $@
  23. clean :
  24. rm -f $(OBJS)