2015-02-08 12:35:34 +01:00
|
|
|
include ../CapwapConfig.mak
|
2015-02-01 16:49:34 +01:00
|
|
|
include ../Macros.mak
|
2014-11-02 07:34:17 +01:00
|
|
|
|
2014-07-20 07:54:39 +02:00
|
|
|
ifndef CC
|
|
|
|
CC=gcc
|
|
|
|
endif
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2014-07-20 07:54:39 +02:00
|
|
|
ifndef AR
|
|
|
|
AR = ar
|
2014-07-11 22:12:11 +02:00
|
|
|
endif
|
|
|
|
|
2014-07-20 07:54:39 +02:00
|
|
|
ifndef ARCH
|
|
|
|
ARCH = $(shell $(CC) -dumpmachine)
|
|
|
|
endif
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-02-08 12:35:34 +01:00
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-02-01 16:49:34 +01:00
|
|
|
#OPENSSLINC=$(OPENSSLINC)
|
|
|
|
#../contrib/openssl-1.0.1i/include
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
NAME=libcapwap.a
|
|
|
|
|
2015-04-14 07:42:23 +02:00
|
|
|
SOCKOBJS=\
|
|
|
|
sock_create.o\
|
|
|
|
sock_copyaddr.o\
|
|
|
|
sock_strtoaddr.o\
|
|
|
|
sock_cmpaddr.o\
|
|
|
|
sock_addrlen.o \
|
|
|
|
sock_mwait.o\
|
|
|
|
sock_addrtostr.o \
|
|
|
|
sock_setport.o \
|
|
|
|
sock_getport.o \
|
|
|
|
sock_getifaddr.o \
|
|
|
|
sock_getifhwaddr.o \
|
|
|
|
sock_hwaddrtostr.o \
|
|
|
|
sock_set_recvtimeout.o \
|
|
|
|
sock_getbroadcastaddr.o \
|
|
|
|
sock_addrinit.o \
|
|
|
|
sock_set_dontfrag.o \
|
|
|
|
sock_get_primary_if.o \
|
|
|
|
sock_receive.o \
|
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-04-10 19:51:56 +02:00
|
|
|
LOGOBJS=log.o \
|
|
|
|
log_syslog.o \
|
|
|
|
log_file.o \
|
2015-04-14 07:42:23 +02:00
|
|
|
dbg_strings.o\
|
|
|
|
dbg.o
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
|
2015-04-14 07:42:23 +02:00
|
|
|
WTPINFOOBJS =\
|
|
|
|
wtpinfo_set_location.o \
|
2014-07-20 07:54:39 +02:00
|
|
|
wtpinfo_print.o
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2014-08-18 01:40:35 +02:00
|
|
|
UTILOBJS= \
|
|
|
|
cw_setstr.o \
|
|
|
|
cw_is_printable.o \
|
|
|
|
cw_rand.o \
|
|
|
|
stravltree.o \
|
2015-04-06 09:22:51 +02:00
|
|
|
intavltree.o \
|
2015-03-15 14:32:42 +01:00
|
|
|
cw_util.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
cw_format_version.o \
|
2015-04-10 17:14:55 +02:00
|
|
|
send.o
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-04-17 07:38:44 +02:00
|
|
|
MAVLOBJS= \
|
|
|
|
mavl.o \
|
|
|
|
mavl_del.o \
|
|
|
|
mavl_add.o \
|
|
|
|
mavl_create.o\
|
2015-04-19 16:44:20 +02:00
|
|
|
mavl_get.o\
|
|
|
|
mavl_del_all.o\
|
|
|
|
mavliter_seek.o \
|
|
|
|
mavliter_next.o \
|
2015-04-19 23:27:44 +02:00
|
|
|
mavl_get_node.o \
|
|
|
|
mavl_foreach.o \
|
|
|
|
mavl_foreach_lr.o \
|
2015-04-20 02:26:24 +02:00
|
|
|
utf8.o \
|
|
|
|
file.o
|
2015-04-17 07:38:44 +02:00
|
|
|
|
2015-04-14 07:42:23 +02:00
|
|
|
# cw_foreach_msgelem.o \
|
2015-03-23 07:48:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
# LWAPP objs
|
|
|
|
LWAPPOBJS = \
|
|
|
|
lw_checksum.o \
|
2015-03-23 22:26:05 +01:00
|
|
|
lw_put_ac_descriptor.o \
|
2015-03-24 20:14:26 +01:00
|
|
|
lw_put_cisco_path_mtu.o \
|
2015-03-28 08:29:59 +01:00
|
|
|
lw_put_80211_wtp_wlan_radio_configuration.o \
|
2015-03-28 18:31:33 +01:00
|
|
|
lw_readelem_vendor_specific.o \
|
|
|
|
lw_vendor_id_to_str.o \
|
|
|
|
lw_elem_id_to_str.o \
|
|
|
|
lw_msg_id_to_str.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
lw_cisco_id_to_str.o \
|
|
|
|
lw_put_sockaddr.o \
|
2015-04-13 11:00:46 +02:00
|
|
|
lw_put_image_data.o
|
2015-03-28 18:31:33 +01:00
|
|
|
|
2015-04-11 19:00:51 +02:00
|
|
|
# lw_readelem_wtp_name.o \
|
|
|
|
lw_readelem_wtp_board_data.o \
|
2015-04-12 19:19:29 +02:00
|
|
|
cw_log_debug.o \
|
2015-03-23 07:48:27 +01:00
|
|
|
|
2015-03-24 20:14:26 +01:00
|
|
|
|
2015-03-23 07:48:27 +01:00
|
|
|
# LWAPP cisco vendor specific objs
|
|
|
|
LWAPPCISCOOBJS = \
|
|
|
|
lw_addelem.o
|
|
|
|
|
|
|
|
|
2014-08-16 15:12:35 +02:00
|
|
|
# cw_tohex.o\
|
2014-07-11 22:12:11 +02:00
|
|
|
#capwap_parse_ctrlhdr.o \
|
|
|
|
|
2015-03-23 07:48:27 +01:00
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
CAPWAPOBJS= \
|
|
|
|
wtpinfo.o \
|
|
|
|
aciplist.o \
|
2014-07-26 20:27:57 +02:00
|
|
|
lwmsg_init.o \
|
2014-07-26 11:10:32 +02:00
|
|
|
wtpinfo_lwreadelem_wtp_descriptor.o \
|
2014-07-31 17:56:57 +02:00
|
|
|
hdr_print.o \
|
2015-03-28 18:31:33 +01:00
|
|
|
cw_cisco_id_to_str.o\
|
2015-03-31 08:04:03 +02:00
|
|
|
cw_strlist_get_str.o \
|
2015-04-11 19:00:51 +02:00
|
|
|
cw_strlist_get_id.o \
|
2015-03-31 14:10:55 +02:00
|
|
|
capwap_strings_msg.o \
|
2015-04-10 17:14:55 +02:00
|
|
|
capwap_strings_elem80211.o\
|
|
|
|
acpriolist.o\
|
2015-03-31 14:10:55 +02:00
|
|
|
capwap_strings_state.o \
|
2015-03-31 18:37:07 +02:00
|
|
|
capwap_strings_vendor.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
capwap_strings_elem.o \
|
2015-03-31 12:47:39 +02:00
|
|
|
cw_in_vendor_specific_payload.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
cw_in_wtp_board_data.o \
|
2015-04-06 09:22:51 +02:00
|
|
|
cw_in_check_disc_req.o \
|
2015-04-10 17:14:55 +02:00
|
|
|
cw_in_check_disc_resp.o\
|
2015-04-06 09:22:51 +02:00
|
|
|
cw_in_check_join_req.o \
|
2015-04-13 11:00:46 +02:00
|
|
|
cw_in_check_cipwap_join_req.o \
|
2015-04-10 17:14:55 +02:00
|
|
|
cw_in_check_join_resp.o \
|
2015-04-11 19:00:51 +02:00
|
|
|
cw_in_check_img_data_req_ac.o \
|
|
|
|
cw_in_check_img_data_req_wtp.o \
|
|
|
|
cw_in_check_img_data_resp.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
cw_out_generic.o \
|
|
|
|
cw_out_ac_descriptor.o \
|
2015-04-11 19:00:51 +02:00
|
|
|
cw_out_wtp_descriptor.o \
|
2015-04-05 20:27:17 +02:00
|
|
|
cw_out_cisco_ac_descriptor.o \
|
|
|
|
cw_out_cisco_ap_timesync.o \
|
2015-04-07 07:42:36 +02:00
|
|
|
cw_in_cisco_image_identifier.o\
|
2015-04-10 17:14:55 +02:00
|
|
|
cw_out_capwap_control_ip_addr_list.o \
|
|
|
|
cw_in_capwap_control_ipv4_address.o\
|
2015-04-06 09:22:51 +02:00
|
|
|
strheap.o \
|
|
|
|
cw_check_missing_mand.o \
|
2015-04-07 07:42:36 +02:00
|
|
|
md5sum.o \
|
2015-04-10 17:14:55 +02:00
|
|
|
format.o \
|
2015-04-19 23:27:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# avltree.o \
|
|
|
|
avltree_get_node.o \
|
|
|
|
avltree_get.o \
|
|
|
|
avltree_del_all.o \
|
|
|
|
avltree_foreach_lr.o \
|
|
|
|
avltree_foreach_rl.o \
|
|
|
|
avltree_foreach_from_lr.o \
|
|
|
|
avliter_next.o \
|
|
|
|
avliter_seek.o \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-04-10 17:14:55 +02:00
|
|
|
|
2015-04-07 07:42:36 +02:00
|
|
|
|
2015-04-11 19:00:51 +02:00
|
|
|
#acinfo.o \
|
2015-04-14 07:42:23 +02:00
|
|
|
# cwmsg_addelem_vendor_cisco_mwar_addr.o \
|
2015-04-10 19:51:56 +02:00
|
|
|
# cwsend_unknow_response.o \
|
|
|
|
cw_send_configuration_update_response.o \
|
|
|
|
cwsend_echo_request.o \
|
2015-04-12 10:19:02 +02:00
|
|
|
acinfo_print.o \
|
2015-04-10 21:44:05 +02:00
|
|
|
cwmsg_init_echo_request.o \
|
|
|
|
cwmsg_addelem.o \
|
|
|
|
cwmsg_vaddelem.o \
|
2015-04-11 19:00:51 +02:00
|
|
|
cw_log_str2dbglevel.o \
|
|
|
|
cwmsg_addelem_maximum_message_length.o \
|
2015-04-12 10:19:02 +02:00
|
|
|
# cwmsg_send.o \
|
2015-04-10 21:44:05 +02:00
|
|
|
cwmsg_addelem_ac_descriptor.o \
|
|
|
|
cwmsg_addelem_wtp_descriptor.o \
|
|
|
|
cwmsg_addelem_cw_local_ip_addr.o \
|
|
|
|
cwmsg_addelem_mtu_discovery_padding.o \
|
|
|
|
cwmsg_addelem_ac_timestamp.o \
|
|
|
|
cw_send_echo_response.o \
|
2015-04-10 19:51:56 +02:00
|
|
|
cw_handle_echo_request.o \
|
|
|
|
cwsend_conf_status_response.o\
|
|
|
|
cw_readmsg_configuration_status_response.o \
|
2015-04-10 17:52:01 +02:00
|
|
|
cw_readmsg_configuration_status_request.o \
|
|
|
|
cw_readelem_maximum_message_length.o \
|
|
|
|
cw_readelem_result_code.o\
|
|
|
|
cw_readelem_ac_name.o \
|
|
|
|
cw_readelem_ac_descriptor.o \
|
2015-04-11 19:00:51 +02:00
|
|
|
conn_detect_capwap.o \
|
2015-04-10 17:52:01 +02:00
|
|
|
cw_readelem_radio_administrative_state.o \
|
|
|
|
cw_readelem_radio_operational_state.o \
|
|
|
|
cw_readelem_statistics_timer.o \
|
|
|
|
cw_readelem_mtu_discovery_padding.o \
|
|
|
|
cw_readelem_vendor_specific_payload.o \
|
|
|
|
cw_readelem_capwap_local_ip_addr.o \
|
|
|
|
cw_readelem_wtp_reboot_statistics.o\
|
2015-04-11 19:00:51 +02:00
|
|
|
cwmsg_addelem_image_identifier.o \
|
2015-04-10 17:52:01 +02:00
|
|
|
conn_get_response.o \
|
|
|
|
# cwsend_change_state_event_response.o \
|
|
|
|
cwread_discovery_response.o \
|
|
|
|
cwsend_discovery_request.o \
|
|
|
|
cw_send_image_file.o \
|
|
|
|
cwread_configuration_status_request.o\
|
|
|
|
cwread_change_state_event_request.o\
|
|
|
|
cwread_wtp_event_request.o \
|
|
|
|
process_conf_status_request.o \
|
|
|
|
cw_readelem_ecn_support.o \
|
2015-04-11 19:00:51 +02:00
|
|
|
conn_wait_for_message.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
|
2015-04-10 17:52:01 +02:00
|
|
|
# wtpinfo_readelem_wtp_mac_type.o \
|
|
|
|
# wtpinfo_readelem_wtp_descriptor.o \
|
|
|
|
# wtpinfo_readelem_discovery_type.o \
|
|
|
|
# wtpinfo_readelem_wtp_frame_tunnel_mode.o \
|
|
|
|
# wtpinfo_readelem_location_data.o \
|
|
|
|
# wtpinfo_readelem_wtp_name.o \
|
|
|
|
# wtpinfo_readelem_session_id.o \
|
2015-04-10 17:14:55 +02:00
|
|
|
# cwmsg_addelem_wtp_radio_infos.o \
|
2015-04-08 20:08:12 +02:00
|
|
|
# cw_addelem_vendor_specific_payload.o \
|
2015-04-05 20:27:17 +02:00
|
|
|
#cw_in_wtp_name.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
#cw_msgtostr.o \
|
|
|
|
#cw_msgelemtostr.o \
|
|
|
|
#cwmsg_addelem_ctrl_ip_addrs.o \
|
|
|
|
#process_join_request.o \
|
2015-04-07 07:42:36 +02:00
|
|
|
#cwmsg_addelem_wtp_board_data.o \
|
|
|
|
#wtpinfo_readelem_wtp_board_data.o \
|
2015-04-07 08:39:27 +02:00
|
|
|
# cw_send_image_data_response.o \
|
2015-04-08 20:08:12 +02:00
|
|
|
#cwmsg_init.o \
|
2015-04-10 17:14:55 +02:00
|
|
|
# cw_readelem_80211_wtp_radio_info.o \
|
|
|
|
# cwmsg_addelem_80211_add_wlan.o \
|
2015-04-10 17:52:01 +02:00
|
|
|
cwsend_discovery_response.o \
|
|
|
|
cw_readelem_cisco_wtp_radio_cfg.o \
|
|
|
|
cw_addelem_cisco_wtp_radio_cfg.o \
|
2015-04-14 07:42:23 +02:00
|
|
|
conn_prepare_request.o \
|
2015-03-28 12:51:34 +01:00
|
|
|
|
2015-03-28 18:31:33 +01:00
|
|
|
#cw_ianavendoridtostr.o \
|
2015-03-29 01:55:06 +01:00
|
|
|
#cwmsg_addelem_result_code.o \
|
|
|
|
# cwmsg_addelem_radio_operational_state.o \
|
2015-04-10 17:14:55 +02:00
|
|
|
# wtpinfo_readelem_wtp_radio_info.o \
|
2015-03-23 22:26:05 +01:00
|
|
|
|
|
|
|
# cwmsg_addelem_vendor_cisco_ap_timesync.o \
|
|
|
|
# cwmsg_addelem_vendor_specific_payload.o \
|
2015-04-07 08:39:27 +02:00
|
|
|
# conn_prepare_image_data_request.o \
|
2015-03-15 20:46:16 +01:00
|
|
|
|
2015-03-14 10:15:12 +01:00
|
|
|
#cwmsg_addelem_session_id.o
|
2015-03-14 21:41:50 +01:00
|
|
|
# process_msgelems_discovery_request.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
# cwsend_join_request.o \
|
|
|
|
#
|
2014-08-25 07:56:14 +02:00
|
|
|
# cwsend_image_data_request.o
|
2014-07-11 22:12:11 +02:00
|
|
|
# cwmsg_set_control_header.o
|
|
|
|
# process_msgelems.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
# cwsend_join_response.o \
|
2015-04-07 07:42:36 +02:00
|
|
|
# cwread_discovery_request.o\
|
2015-04-10 17:52:01 +02:00
|
|
|
cwread_join_response.o \
|
|
|
|
cw_read_image_data_request.o \
|
|
|
|
# conn_send_cwmsg.o \
|
|
|
|
# conn_send_request.o \
|
|
|
|
# conn_wait_for_request.o \
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-02-08 12:35:34 +01:00
|
|
|
#
|
|
|
|
# SSL objects
|
|
|
|
#
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-02-08 12:35:34 +01:00
|
|
|
ifeq ($(WITH_OPENSSL),1)
|
|
|
|
CFLAGS+=$(OPENSSL_CFLAGS)
|
|
|
|
CFLAGS+=-DWITH_OPENSSL
|
|
|
|
DTLSOBJS += dtls_openssl.o \
|
2015-02-07 02:59:49 +01:00
|
|
|
dtls_openssl_accept.o \
|
|
|
|
dtls_openssl_connect.o \
|
|
|
|
dtls_openssl_get_cipher.o \
|
2015-02-08 12:35:34 +01:00
|
|
|
dtls_openssl_bio.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(WITH_GNUTLS),1)
|
|
|
|
CFLAGS+=$(GNUTLS_CFLAGS)
|
|
|
|
CFLAGS+=-DWITH_GNUTLS
|
|
|
|
DTLSOBJS+= dtls_gnutls.o \
|
2015-02-07 02:59:49 +01:00
|
|
|
dtls_gnutls_accept.o \
|
2015-02-08 21:07:55 +01:00
|
|
|
dtls_gnutls_connect.o \
|
2015-02-08 16:28:04 +01:00
|
|
|
dtls_gnutls_bio.o \
|
2015-02-09 22:04:54 +01:00
|
|
|
dtls_gnutls_get_cipher.o \
|
|
|
|
dtls_gnutls_get_peers_cert.o
|
2015-02-08 12:35:34 +01:00
|
|
|
endif
|
|
|
|
|
2015-02-08 16:28:04 +01:00
|
|
|
DTLSOBJS+=dtls_bio.o
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-03-20 22:31:09 +01:00
|
|
|
CONNOBJS= conn_create.o \
|
2014-07-11 22:12:11 +02:00
|
|
|
conn_process_packet.o \
|
|
|
|
conn_q_add_packet.o \
|
|
|
|
conn_q_get_packet.o \
|
|
|
|
conn_q_recv_packet.o \
|
|
|
|
conn_recv_packet.o \
|
2014-07-20 12:50:01 +02:00
|
|
|
conn_destroy.o \
|
2014-07-20 16:00:27 +02:00
|
|
|
connlist.o \
|
2014-07-25 00:27:17 +02:00
|
|
|
conn_create_noq.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
conn_init.o \
|
2015-04-14 07:42:23 +02:00
|
|
|
conn_send_packet.o \
|
|
|
|
|
|
|
|
# conn_send_msg.o
|
2015-04-07 07:42:36 +02:00
|
|
|
#conn_get_message.o \
|
2015-04-14 07:42:23 +02:00
|
|
|
# conn_send_response.o \
|
|
|
|
# cw_prepare_configuration_status_request.o \
|
|
|
|
# cw_prepare_change_state_event_request.o \
|
|
|
|
conn_prepare_configuration_update_request.o \
|
2015-03-16 21:41:33 +01:00
|
|
|
|
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-01-31 12:21:20 +01:00
|
|
|
BSTROBJS= bstr_create.o \
|
|
|
|
bstr_create_from_cfgstr.o \
|
2015-03-14 21:41:50 +01:00
|
|
|
bstr_replace.o \
|
2015-04-14 07:42:23 +02:00
|
|
|
bstr_to_str.o \
|
|
|
|
bstr16cfgstr.o
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
FRAGOBJS=fragman.o
|
|
|
|
|
2015-04-05 02:07:59 +02:00
|
|
|
CWACTION=action.o \
|
|
|
|
capwap_actions_ac.o \
|
2015-04-07 07:42:36 +02:00
|
|
|
capwap_actions_wtp.o \
|
2015-04-10 17:14:55 +02:00
|
|
|
capwap_80211_actions_wtp.o \
|
2015-04-05 02:07:59 +02:00
|
|
|
cw_in_generic.o \
|
2015-04-05 03:32:50 +02:00
|
|
|
cw_in_wtp_descriptor.o \
|
2015-04-07 07:42:36 +02:00
|
|
|
cw_out_wtp_board_data.o \
|
2015-04-11 19:00:51 +02:00
|
|
|
cw_out_image_data.o \
|
2015-04-05 03:32:50 +02:00
|
|
|
cipwap_actions_ac.o \
|
2015-04-18 12:02:58 +02:00
|
|
|
cipwap_actions_wtp.o \
|
2015-04-05 20:27:17 +02:00
|
|
|
cipwap_strings_elem.o \
|
2015-04-10 17:14:55 +02:00
|
|
|
capwap_strings_result.o\
|
2015-04-05 20:27:17 +02:00
|
|
|
cw_put_msg.o \
|
|
|
|
capwap_action_helpers.o \
|
2015-04-19 16:44:20 +02:00
|
|
|
cw_put_image_data.o \
|
|
|
|
cisco.o \
|
|
|
|
item_strings.o \
|
|
|
|
mbag.o\
|
|
|
|
radio.o \
|
|
|
|
cw_out_radio_info.o
|
2015-04-05 02:07:59 +02:00
|
|
|
|
2015-04-10 17:14:55 +02:00
|
|
|
# cw_process_msg.o \
|
|
|
|
|
2015-03-30 07:56:42 +02:00
|
|
|
|
|
|
|
|
2015-03-23 07:48:27 +01:00
|
|
|
OBJS=$(CONNOBJS) $(FRAGOBJS) $(SOCKOBJS) $(CAPWAPOBJS) $(WTPINFOOBJS) \
|
|
|
|
$(LOGOBJS) $(UTILOBJS) $(DTLSOBJS) $(BSTROBJS) \
|
|
|
|
$(LWAPPOBJS) \
|
2015-03-30 07:56:42 +02:00
|
|
|
$(LWAPPCISCOOBJS) \
|
2015-04-17 07:38:44 +02:00
|
|
|
$(CWACTION) \
|
|
|
|
$(MAVLOBJS)
|
2015-03-23 07:48:27 +01:00
|
|
|
|
2015-03-28 12:51:34 +01:00
|
|
|
#include $(OBJS:.o=.d)
|
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
O:=$(OBJS);
|
|
|
|
|
|
|
|
OBJS:=$(patsubst %.o,$(ARCH)/%.o,$(OBJS))
|
|
|
|
|
2015-04-19 23:27:44 +02:00
|
|
|
CFLAGS = -Werror -g -O0 -D_REENTRANT -DWITH_IPV6 -DWITH_RMAC_SUPPORT -I /usr/local/include
|
2015-04-11 19:00:51 +02:00
|
|
|
#CFLAGS = -Wall -O3 -D_REENTRANT -DWITH_IPV6 -DWITH_RMAC_SUPPORT -I/usr/local/include
|
2014-07-11 22:12:11 +02:00
|
|
|
|
2015-02-08 11:42:01 +01:00
|
|
|
CFLAGS += $(GNUTLS_CFLAGS) \
|
|
|
|
-DWITH_CW_LOG \
|
2014-07-11 22:12:11 +02:00
|
|
|
-DWITH_CW_LOG_DEBUG \
|
|
|
|
-DWITH_DTLS \
|
2014-08-16 09:10:38 +02:00
|
|
|
$(XINCLUDE)\
|
2015-02-01 16:49:34 +01:00
|
|
|
-I $(OPENSSLINC)\
|
|
|
|
-Werror
|
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
#SRCS = $(OBJS:.o=.c)
|
|
|
|
|
|
|
|
$(ARCH)/%.o:%.c
|
|
|
|
@mkdir -p $(ARCH)
|
|
|
|
@echo " CC "$<
|
|
|
|
@$(CC) -c $(CFLAGS) $< -o $@
|
2015-04-05 02:07:59 +02:00
|
|
|
# @$(CC) -MM $(CFLAGS) $< > $*.d
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
$(ARCH)/$(NAME) : $(OBJS)
|
|
|
|
@echo " AR $(ARCH)/$(NAME)"
|
|
|
|
@$(AR) rcs $(ARCH)/$(NAME) $(OBJS)
|
|
|
|
|
|
|
|
|
|
|
|
SRCS = $(OBJS:.o=.c)
|
|
|
|
DEPS := $(OBJS:.o=.d)
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: deps clean clean_libs libs
|
|
|
|
|
|
|
|
# top-level rule, to compile everything.
|
|
|
|
all: $(ARCH)/$(NAME)
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2015-04-06 09:22:51 +02:00
|
|
|
$(RM) $(ARCH)/*
|
|
|
|
# $(RM) $(OBJS)
|
|
|
|
# $(RM) $(DEPS)
|
|
|
|
# $(RM) $(ARCH)/$(NAME)
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
clean_deps:
|
|
|
|
$(DEPS)
|
|
|
|
|
|
|
|
deps: $(SRCS)
|
|
|
|
$(CC) -MD -E $(SRCS) $(CFLAGS) >/dev/null
|
|
|
|
|
|
|
|
-include $(DEPS)
|