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.

40 lines
874 B

18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
  1. # Set to 'yes' to include debugging informations, e.g. DEBUG=yes make -e
  2. DEBUG := no
  3. # common source files
  4. SRCS := src/conf.c \
  5. src/log.c \
  6. src/xpath.c \
  7. src/hal.c \
  8. src/pad.c \
  9. src/volume.c \
  10. src/local.c \
  11. src/device.c
  12. OBJS := $(SRCS:.c=.o)
  13. # pusb_check
  14. PUSB_CHECK_SRCS := src/pusb_check.c
  15. PUSB_CHECK_OBJS := $(PUSB_CHECK_SRCS:.c=.o)
  16. PUSB_CHECK := pusb_check
  17. # compiler/linker options
  18. CC := gcc
  19. CFLAGS := -Wall `pkg-config --cflags libxml-2.0` \
  20. `pkg-config --cflags hal-storage`
  21. LDFLAGS := `pkg-config --libs libxml-2.0` \
  22. `pkg-config --libs hal-storage`
  23. ifeq (yes, ${DEBUG})
  24. CFLAGS := ${CFLAGS} -ggdb
  25. endif
  26. all : $(PUSB_CHECK)
  27. $(PUSB_CHECK) : $(OBJS) $(PUSB_CHECK_OBJS)
  28. $(CC) -o $(PUSB_CHECK) $(LDFLAGS) $(OBJS) $(PUSB_CHECK_OBJS)
  29. %.o : %.c
  30. ${CC} -c ${CFLAGS} $< -o $@
  31. clean :
  32. rm -f $(OBJS) $(PUSB_CHECK_OBJS)