DRM decrypting tool for Samsung TVs PVR
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.

Makefile 722B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # This Makefile requires GNU Make
  3. #
  4. CC ?= cc
  5. CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -maes
  6. LDFLAGS += -static
  7. # add git revision if .git exists
  8. ifeq (,$(wildcard .git))
  9. CFLAGS += -DREVISION="unknown"
  10. else
  11. CFLAGS += -DREVISION="$(shell git rev-parse --short HEAD)"
  12. endif
  13. # optimizations
  14. CFLAGS += -Ofast -march=native
  15. # malloc implementation and link to libc/msvcrt
  16. ifeq ($(OS),Windows_NT)
  17. CFLAGS += -DHAVE__ALIGNED_MALLOC
  18. LDFLAGS += -lmsvcrt
  19. else
  20. CFLAGS += -DHAVE_POSIX_MEMALIGN
  21. LDFLAGS += -lc
  22. endif
  23. ##########################
  24. SRC = AES.c AESNI.c buffer.c drmdecrypt.c
  25. OBJS = $(SRC:.c=.o)
  26. all: drmdecrypt
  27. drmdecrypt: $(OBJS)
  28. clean:
  29. rm -f *.o *.core drmdecrypt drmdecrypt.exe