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.
 
 
 
 

24 lines
629 B

  1. # compiler, tools
  2. CC = $(shell type -P clang || echo gcc)
  3. PKG_CONFIG ?= pkg-config
  4. # flags
  5. CFLAGS ?= -march=native -O2 -pipe
  6. CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function
  7. ifeq ($(CC),gcc)
  8. CFLAGS += -Wno-unused-but-set-variable
  9. endif
  10. LDFLAGS ?= -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
  11. # install/uninstall variables
  12. RM = rm
  13. LN_S = ln -s
  14. INSTALL = install
  15. INSTALL_BIN = install -m755
  16. INSTALL_DIR = install -d
  17. PREFIX = /usr/local
  18. LIBDIR = lib64
  19. INSTALL_BINDIR = $(PREFIX)/bin
  20. INSTALL_LIBDIR = $(PREFIX)/$(LIBDIR)
  21. INSTALL_INCLUDEDIR = $(PREFIX)/include/ntru