3 LIBOBJS = fdt.o fdt_ro.o fdt_wip.o fdt_sw.o fdt_rw.o fdt_strerror.o
5 SOURCE = $(shell find . -maxdepth 1 ! -name version.h -a -name '*.[h]')
12 LIBDIR = $(PREFIX)/$(LIB32)
27 DEPFILES = $(LIBOBJS:%.o=%.d)
41 cd tests; ./run_tests.sh
44 cd tests; ./run_tests.sh -v
47 cd tests; ./run_tests.sh -t func
50 cd tests; ./run_tests.sh -t func -v
53 cd tests; ./run_tests.sh -t stress
56 cd tests; ./run_tests.sh -t stress -v
60 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
64 $(AR) $(ARFLAGS) $@ $^
68 $(CC) $(CPPFLAGS) -E $< > $@
72 $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -S $<
76 rm -f *~ *.o *.so *.a *.d *.i *.s core a.out $(VERSION)
77 $(MAKE) -C tests clean
80 @$(CC) $(CPPFLAGS) -MM -MT "$*.o $@" $< > $@
82 # Workaround: Don't build dependencies for certain targets
83 # When the include below is executed, make will use the %.d target above to
84 # generate missing files. For certain targets (clean, version.h, etc) we don't
85 # need or want these dependency files, so don't include them in this case.
86 ifeq (,$(findstring <$(MAKECMDGOALS)>,$(NODEPTARGETS)))