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
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