Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / rom / isapnp / mmakefile.src
blobf255c0490d662e9e02ee9ae92152008d8bf38a5d
1 include $(TOP)/config/make.cfg
3 FILES := controller devices init pnp pnp_iterators pnp_structs end
5 USER_CFLAGS := -fomit-frame-pointer -fstrict-aliasing -Os \
6                -W -Wall -Wstrict-prototypes -Wno-unused -I$(GENDIR)/$(CURDIR)
8 %build_module_simple mmake=kernel-isapnp \
9     modname=isapnp modtype=resource \
10     files="$(FILES)" uselibs="rom"
12 # FIXME: %build_module_simple macro doesn't track dependencies.
13 #        This definitely needs to be fixed. Until this we'll use
14 #        this manual dependency
15 $(OBJDIR)/init.o: $(GENDIR)/$(CURDIR)/version.h
17 $(GENDIR)/$(CURDIR)/version.h:  version.rev version.date
18         @echo Creating $@
19         @ver=`cat $(SRCDIR)/$(CURDIR)/version.ver` \
20          rev=`cat $(SRCDIR)/$(CURDIR)/version.rev` \
21          date=`cat $(SRCDIR)/$(CURDIR)/version.date` && \
22          echo "#define VERSION $$ver" > $@ && \
23          echo "#define REVISION $$rev" >> $@ && \
24          echo "#define VERS \"$$ver.$$rev ($$date)\"" >> $@
26 INCLUDE_FILES := include/isapnp.h
27 %copy_includes path=resources dir=include
29 INCLUDE_FILES := include/isapnp_protos.h
30 %copy_includes path=clib dir=include
32 %common