## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
    obj = bld.create_ns3_module('wimax', ['network', 'spectrum', 'point-to-point'])
    obj.source = [
            'model/cid.cc',
            'model/cid-factory.cc',
            'model/wimax-net-device.cc',
            'model/bs-net-device.cc',
            'model/ss-net-device.cc',
            'model/wimax-mac-header.cc',
            'model/wimax-phy.cc',
            'model/wimax-channel.cc',
            'model/ofdm-downlink-frame-prefix.cc',
            'model/wimax-connection.cc',
            'model/ss-record.cc',
            'model/mac-messages.cc',
            'model/dl-mac-messages.cc',
            'model/ul-mac-messages.cc',
            'model/simple-ofdm-wimax-phy.cc',
            'model/simple-ofdm-wimax-channel.cc',
            'model/send-params.cc',
            'model/ss-manager.cc',
            'model/connection-manager.cc',
            'model/bs-uplink-scheduler.cc',
            'model/bs-uplink-scheduler-simple.cc',
            'model/bs-uplink-scheduler-mbqos.cc',
            'model/bs-uplink-scheduler-rtps.cc',
            'model/bs-scheduler.cc',
            'model/bs-scheduler-simple.cc',
            'model/bs-scheduler-rtps.cc',
            'model/wimax-mac-queue.cc',
            'model/burst-profile-manager.cc',
            'model/ss-scheduler.cc',
            'model/service-flow.cc',
            'model/service-flow-manager.cc',
            'model/service-flow-record.cc',
            'model/ss-link-manager.cc',
            'model/bs-link-manager.cc',
            'model/bandwidth-manager.cc',
            'model/crc8.cc',
            'model/ul-job.cc'	,	    
            'model/snr-to-block-error-rate-record.cc',
            'model/snr-to-block-error-rate-manager.cc',
            'model/simple-ofdm-send-param.cc',
            'model/ss-service-flow-manager.cc',
            'model/bs-service-flow-manager.cc',
            'model/ipcs-classifier.cc',
            'model/ipcs-classifier-record.cc',
            'model/wimax-tlv.cc',
            'model/cs-parameters.cc',
            'model/wimax-mac-to-mac-header.cc',
            'helper/wimax-helper.cc',
		            ]

    obj_test = bld.create_ns3_module_test_library('wimax')
    obj_test.source = [
            'test/wimax-tlv-test.cc',
            'test/mac-messages-test.cc',
            'test/wimax-service-flow-test.cc',
            'test/ss-mac-test.cc',
            'test/phy-test.cc',
            'test/qos-test.cc',
            'test/wimax-fragmentation-test.cc',
            ]
		            
    headers = bld.new_task_gen('ns3header')
    headers.module = 'wimax'
    headers.source = [
            'model/wimax-channel.h',
            'model/wimax-net-device.h',
            'model/bs-net-device.h',
            'model/ss-net-device.h',
            'model/cid.h',
            'model/cid-factory.h',
            'model/ofdm-downlink-frame-prefix.h',
            'model/wimax-connection.h',
            'model/ss-record.h',
            'model/mac-messages.h',
            'model/dl-mac-messages.h',
            'model/ul-mac-messages.h',
            'model/wimax-phy.h',
            'model/simple-ofdm-wimax-phy.h',
            'model/simple-ofdm-wimax-channel.h',          
            'model/send-params.h',
            'model/service-flow.h',
            'model/ss-manager.h',
            'model/connection-manager.h',
            'model/wimax-mac-header.h',
            'model/wimax-mac-queue.h',
            'model/crc8.h',
            'model/service-flow-manager.h',
            'model/bs-uplink-scheduler.h',
            'model/bs-uplink-scheduler-simple.h',
            'model/bs-uplink-scheduler-mbqos.h',
            'model/bs-uplink-scheduler-rtps.h',
            'model/ul-job.h',
            'model/bs-scheduler.h',
            'model/bs-scheduler-simple.h',
            'model/bs-scheduler-rtps.h',
            'model/service-flow-record.h',
            'model/snr-to-block-error-rate-record.h',
            'model/snr-to-block-error-rate-manager.h',
            'model/simple-ofdm-send-param.h',
            'model/ss-service-flow-manager.h',
            'model/bs-service-flow-manager.h',
            'model/cs-parameters.h',
            'model/ipcs-classifier-record.h',
            'model/wimax-tlv.h',
            'model/ipcs-classifier.h',
            'model/bvec.h',
            'model/wimax-mac-to-mac-header.h',
            'helper/wimax-helper.h',
		            ]

    if bld.env['ENABLE_EXAMPLES']:
        bld.add_subdirs('examples')

    bld.ns3_python_bindings()
