1# 2# Makefile for the tests/fuzz directory 3# 4 5srcdir = @srcdir@ 6top_srcdir = @top_srcdir@ 7VPATH = @srcdir@ 8top_builddir = ../.. 9my_dir = tests/fuzz 10 11@MCONFIG@ 12 13PROGS= ext2fs_check_directory_fuzzer \ 14 ext2fs_image_read_write_fuzzer \ 15 ext2fs_read_bitmap_fuzzer 16 17SRCS= $(srcdir)/ext2fs_check_directory_fuzzer.cc \ 18 $(srcdir)/ext2fs_image_read_write_fuzzer.cc \ 19 $(srcdir)/ext2fs_read_bitmap_fuzzer.cc 20 21LOCAL_CFLAGS= @fuzzer_cflags@ 22LOCAL_LDFLAGS= @fuzzer_ldflags@ 23 24LIBS= $(LIBEXT2FS) $(LIBCOM_ERR) $(LIBSUPPORT) 25DEPLIBS= $(LIBEXT2FS) $(DEPLIBCOM_ERR) $(DEPLIBSUPPORT) 26 27STATIC_LIBS= $(LIBSUPPORT) $(STATIC_LIBE2P) $(STATIC_LIBEXT2FS) \ 28 $(STATIC_LIBCOM_ERR) 29STATIC_DEPLIBS= $(DEPLIBSUPPORT) $(STATIC_LIBE2P) $(STATIC_LIBEXT2FS) \ 30 $(DEPSTATIC_LIBCOM_ERR) 31 32FUZZ_LDFLAGS= $(ALL_LDFLAGS) 33FUZZ_DEP= $(STATIC_DEPLIBS) $(srcdir)/Makefile.in 34 35.cc.o: 36 $(E) " CXX $<" 37 $(Q) $(CXX) -c $(ALL_CFLAGS) $< -o $@ 38 39@FUZZING_CMT@all:: $(PROGS) 40 41clean:: 42 $(RM) -f $(PROGS) *.o 43 44install: 45 46install-strip: 47 48uninstall: 49 50mostlyclean: clean 51distclean: clean 52 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old 53 54ext2fs_check_directory_fuzzer: ext2fs_check_directory_fuzzer.o $(FUZZ_DEP) 55 $(E) " LD $@" 56 $(Q) $(CXX) $(FUZZ_LDFLAGS) -o $@ $< $(STATIC_LIBS) $(SYSLIBS) 57 58ext2fs_image_read_write_fuzzer: ext2fs_image_read_write_fuzzer.o $(FUZZ_DEP) 59 $(E) " LD $@" 60 $(Q) $(CXX) $(FUZZ_LDFLAGS) -o $@ $< $(STATIC_LIBS) $(SYSLIBS) 61 62ext2fs_read_bitmap_fuzzer: ext2fs_read_bitmap_fuzzer.o $(FUZZ_DEP) 63 $(E) " LD $@" 64 $(Q) $(CXX) $(FUZZ_LDFLAGS) -o $@ $< $(STATIC_LIBS) $(SYSLIBS) 65 66# +++ Dependency line eater +++ 67# 68# Makefile dependencies follow. This must be the last section in 69# the Makefile.in file 70# 71ext2fs_check_directory_fuzzer.o: $(srcdir)/ext2fs_check_directory_fuzzer.cc \ 72 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 73 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 74 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 75 $(top_builddir)/lib/ext2fs/ext2_err.h \ 76 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 77 $(top_srcdir)/lib/ext2fs/bitops.h 78ext2fs_image_read_write_fuzzer.o: $(srcdir)/ext2fs_image_read_write_fuzzer.cc \ 79 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 80 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 81 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 82 $(top_builddir)/lib/ext2fs/ext2_err.h \ 83 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 84 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h \ 85 $(top_srcdir)/lib/support/print_fs_flags.h 86ext2fs_read_bitmap_fuzzer.o: $(srcdir)/ext2fs_read_bitmap_fuzzer.cc \ 87 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \ 88 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \ 89 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \ 90 $(top_builddir)/lib/ext2fs/ext2_err.h \ 91 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/hashmap.h \ 92 $(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/e2p/e2p.h \ 93 $(top_srcdir)/lib/support/print_fs_flags.h 94