Fix automake warnings
[wave300_rflib.git] / wireless / driver / rflib / Makefile.am
blob0d441c52e1f58408f060a218a05e468e8c9d11d6
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 if BUILD_DRIVER
7 module_canonical_name = mtlk_rflib_a
8 mtlk_rflib_a_src_dir = linux
9 mtlk_rflib_a_binary_name = mtlk_rflib.a
11 nodist_driver_DATA = $(builddir)/$(mtlk_rflib_a_src_dir)/rflib.scd
12 nodist_rflib_DATA = $(builddir)/$(mtlk_rflib_a_src_dir)/rflib.scd
13 nodist_wlsprebult_DATA = $(builddir)/prebuilt.tar.bz2
15 $(builddir)/prebuilt.tar.bz2: mtlk_rflib.a $(builddir)/$(mtlk_rflib_a_src_dir)/rflib.scd
16         rm -rf $(builddir)/_prebuilt_package
17         mkdir -p $(builddir)/_prebuilt_package/wireless/driver/rflib/prebuilt/$(CONFIG_ENVIRONMENT_NAME)
18         cp -fp $^ $(builddir)/_prebuilt_package/wireless/driver/rflib/prebuilt/$(CONFIG_ENVIRONMENT_NAME)
19         cd $(builddir)/_prebuilt_package/ && tar -cjf $(abs_builddir)/prebuilt.tar.bz2 wireless
21 $(builddir)/$(mtlk_rflib_a_src_dir)/rflib.scd: mtlk_rflib.a
22         @:
24 rflib_PROGRAMS = mtlk_rflib.a
26 .PHONY : $(mtlk_rflib_a_binary_name)
27 mtlk_rflib_a_SOURCES =
29 #pc2005 TODO fix strip path problem, linking only?
30 mtlk_build_kernel_library=y
31 include $(top_srcdir)/Makefile.am.module_build
33 mtlk_rflib_a_LINK = @{ \
34                         $(rebase_copy_cmd) $(abs_srcdir)/prebuilt/$(CONFIG_ENVIRONMENT_NAME)/mtlk_rflib.a $(abs_builddir) 2>/dev/null && \
35                         mkdir -p $(abs_builddir)/$(mtlk_rflib_a_src_dir) && \
36                         $(rebase_copy_cmd) $(abs_srcdir)/prebuilt/$(CONFIG_ENVIRONMENT_NAME)/rflib.scd $(abs_builddir)/$(mtlk_rflib_a_src_dir) 2>/dev/null; \
37                       } || $(mtlk_rflib_a_BUILD_CMD)
38 clean-local:
39         $(mtlk_rflib_a_CLEAN_CMD)
40         rm -rf $(builddir)/_prebuilt_package $(builddir)/prebuilt.tar.bz2
42 endif
44 EXTRA_DIST = linux/Kbuild \
45              shared/mtlk_aocs.c shared/mtlk_aocs_propr.h \
46              shared/mtlk_channels.c shared/mtlk_channels_propr.h \
47              shared/mtlk_dfs.c shared/mtlk_dfs.h \
48              shared/mtlk_eeprom.c shared/mtlk_eeprom.h \
49              shared/eeprom_gpio.c shared/eeprom_gpio.h \
50              shared/eeprom_irbd.c \
51              shared/cis_manager.c shared/cis_manager.h \
52              shared/mtlk_gpl_helper.c \
53              shared/mtlk_rfmgmt.c \
54              shared/mtlk_scan.c shared/mtlk_scan_propr.h \
55              shared/mtlk_tpcv4.c shared/mtlk_tpcv4.h \
56              shared/rdlim.c shared/rdlim.h \
57              shared/coex20_40.c shared/coexfrgen.c \
58              shared/coexlve.c shared/cbsmgr.c \
59              shared/scexempt.c