2
0

Makefile.in 900 B

12345678910111213141516171819202122232425262728293031323334
  1. # Makefile for libSRTP fuzzer
  2. srcdir = @srcdir@
  3. top_srcdir = @top_srcdir@
  4. top_builddir = @top_builddir@
  5. VPATH = @srcdir@
  6. CC = @CC@
  7. CXX = @CXX@
  8. INCDIR = -Iinclude -I$(srcdir)/include -I$(top_srcdir)/include -I$(top_srcdir)/crypto/include/
  9. DEFS = @DEFS@
  10. CPPFLAGS= @CPPFLAGS@ -g
  11. CXXFLAGS= @CXXFLAGS@ -g
  12. CFLAGS = @CFLAGS@ -g
  13. LIBS = @LIBS@
  14. COMPILE = $(CC) $(DEFS) $(INCDIR) $(CPPFLAGS) $(CFLAGS)
  15. COMPILECXX = $(CXX) $(DEFS) $(INCDIR) $(CPPFLAGS) $(CXXFLAGS)
  16. CRYPTOLIB = -lsrtp2
  17. .PHONY: clean
  18. all : srtp-fuzzer
  19. mt19937.o: mt19937.cpp
  20. $(COMPILECXX) -c -std=c++11 mt19937.cpp -o mt19937.o
  21. fuzzer.o: fuzzer.c fuzzer.h testmem.h
  22. $(COMPILE) fuzzer.c -c -o fuzzer.o
  23. testmem.o: testmem.c
  24. $(COMPILE) -O0 testmem.c -c -o testmem.o
  25. srtp-fuzzer: fuzzer.o mt19937.o testmem.o
  26. $(COMPILECXX) -L. -L.. fuzzer.o mt19937.o testmem.o $(LIBFUZZER) $(CRYPTOLIB) $(LIBS) -o srtp-fuzzer
  27. clean:
  28. rm -rf srtp-fuzzer *.o