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