makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ################################################################################
  2. # Automatically-generated file. Do not edit!
  3. ################################################################################
  4. -include ../makefile.init
  5. RM := rm -rf
  6. CC=gcc
  7. #CC=clang
  8. #Select the desired dags you would like to build
  9. #DAGSVER=-DDAGS_1
  10. #DAGSVER=-DDAGS_3
  11. DAGSVER=-DDAGS_5
  12. #clang CFLAGS
  13. #CFLAGS=-O3 -g3 -Wall -ffunction-sections -fdata-sections -march=native -DDEBUG
  14. CFLAGS=-O3 -g3 -Wall -march=native -mtune=native -fomit-frame-pointer -ffast-math
  15. #CFLAGS=-O3 -g3 -Wall -DDEBUG
  16. #CFLAGS=-O3 -g3 -Wall
  17. LIBS=-lcrypto -lm -lsodium
  18. # All of the sources participating in the build are defined here
  19. -include sources.mk
  20. -include src/util/subdir.mk
  21. -include src/structures/subdir.mk
  22. -include src/random/subdir.mk
  23. -include src/gf/subdir.mk
  24. -include src/subdir.mk
  25. -include subdir.mk
  26. -include objects.mk
  27. ifneq ($(MAKECMDGOALS),clean)
  28. ifneq ($(strip $(C_DEPS)),)
  29. -include $(C_DEPS)
  30. endif
  31. endif
  32. -include ../makefile.defs
  33. SRC=$(wildcard src/*.c src/gf/*.c src/random/*.c src/structures/*.c src/util/*.c)
  34. # Add inputs and outputs from these tool invocations to the build variables
  35. # All Target
  36. all: dags
  37. # Tool invocations
  38. dags: $(SRC)
  39. @echo 'Building target: $@'
  40. @echo 'Invoking: Cross GCC Linker'
  41. $(CC) $(CFLAGS) $(DAGSVER) $ -o "dags" $(SRC) $(LIBS)
  42. @echo 'Finished building target: $@'
  43. @echo ' '
  44. # Other Targets
  45. clean:
  46. -$(RM) $(EXECUTABLES)$(OBJS)$(C_DEPS) dags *.o PQC*
  47. -@echo ' '
  48. .PHONY: all clean dependents
  49. -include ../makefile.targets