Makefile 780 B

123456789101112131415161718192021222324252627282930313233
  1. CFLAGS = -Wall -O2 -pipe
  2. LDFLAGS = -lusb-1.0 -pthread -lm -s
  3. NBIS_REFS = nbis/libnbis.o nbis/libbozorth3/libbozorth3.o nbis/libmindtct/libmindtct.o
  4. all: upekux upekuxd
  5. #upekux
  6. upekux: upekux.o ipc_security.o
  7. upekux.o: ipc.h
  8. #upekuxd
  9. upekuxd: upekuxd.o auth.o driver.o fingerdb.o udf_crc.o uinputux.o ipcd.o ipc_security.o launcherd.o ${NBIS_REFS}
  10. auth.o: launcherd.h
  11. driver.o: driver.h protocol.h uinputux.o uinputux.h
  12. fingerdb.o: fingerdb.h
  13. ipcd.o: driver.h ipc.h
  14. launcherd.o: launcherd.h
  15. #nbis
  16. nbis/libmindtct/libmindtct.o:
  17. cd nbis/libmindtct && ${MAKE}
  18. nbis/libbozorth3/libbozorth3.o:
  19. cd nbis/libbozorth3 && ${MAKE}
  20. PHONY: clean
  21. clean:
  22. rm -f *.o upekuxd upekux
  23. cd nbis && ${MAKE} clean
  24. cd nbis/libmindtct && ${MAKE} clean
  25. cd nbis/libbozorth3 && ${MAKE} clean