Rajeswara Rao | f6b4e6c | 2017-08-31 17:26:27 +0530 | [diff] [blame] | 1 | |
| 2 | CC=/usr/bin/gcc |
| 3 | AR=/usr/bin/ar |
| 4 | |
| 5 | LIB=libEdgecoreDriver.a |
| 6 | |
| 7 | BRDCM_SRC=/home/asfvolt/shared/OpenNetworkLinux/bal_src_release_2.4.3.6/bal_release |
| 8 | GRPC_C_PATH= /home/asfvolt/shared/OpenNetworkLinux/grpc-c/ |
| 9 | |
| 10 | GRPC_C_INC= -I$(GRPC_C_PATH)/build/ \ |
| 11 | -I$(GRPC_C_PATH)/build/examples/ \ |
| 12 | -I$(GRPC_C_PATH)/lib/h/ |
| 13 | |
| 14 | INCL=*.h |
| 15 | SRC=asfvolt16_driver.c \ |
| 16 | bal_access_terminal_hdlr.c \ |
| 17 | bal_flow_hdlr.c \ |
| 18 | bal_group_hdlr.c \ |
VoLTHA | 753536e | 2017-11-02 20:15:09 +0530 | [diff] [blame] | 19 | bal_indications_queue.c \ |
Rajeswara Rao | f6b4e6c | 2017-08-31 17:26:27 +0530 | [diff] [blame] | 20 | bal_indications_hdlr.c \ |
| 21 | bal_interface_hdlr.c \ |
| 22 | bal_packet_hdlr.c \ |
| 23 | bal_stats_hdlr.c \ |
| 24 | bal_subscriber_terminal_hdlr.c \ |
| 25 | bal_tmqueue_hdlr.c \ |
| 26 | bal_tmsched_hdlr.c |
| 27 | |
Kim Kempf | b032b67 | 2017-09-11 18:40:34 -0700 | [diff] [blame] | 28 | C_OPTS=-std=c99 -Wall -Wextra -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wparentheses -Wswitch -Wswitch-default -Wunused -Wuninitialized -Wunused-but-set-variable -Wno-unused-parameter -Wno-missing-field-initializers -Wshadow -MMD -MP -Wno-strict-aliasing -g -gdwarf-3 -O0 -Wall -DBCMOS_MSG_QUEUE_DOMAIN_SOCKET -DBCMOS_MSG_QUEUE_UDP_SOCKET -DBCMOS_MEM_DEBUG -DBCMOS_SYS_UNITTEST -DENABLE_LOG -DDEV_LOG_SYSLOG -DENABLE_CLI -DCONFIG_LINENOISE -DCONFIG_EDITLINE -DQAX_SWITCH -Wno-redundant-decls -DOMCI_SVC -Wno-redundant-decls -DBCM_SUBSYSTEM_CORE -DBCM_PLATFORM_MAPLE -DBCM_OS_POSIX -DBCM_SUBSYSTEM_HOST -D_KERNEL_SPACE -DBCM_EPON -DBCM_GPON -DBCM_XGPON -DCONFIG_MAC_RPC -DCONFIG_SWITCH_RPC -DSIMULATION_BUILD -DBAL_MONOLITHIC -D_XOPEN_SOURCE=600 |
Rajeswara Rao | f6b4e6c | 2017-08-31 17:26:27 +0530 | [diff] [blame] | 29 | |
| 30 | INC_PATH= -I. -I$(BRDCM_SRC)/src/common/os_abstraction \ |
| 31 | -I$(BRDCM_SRC)/src/common/os_abstraction/posix \ |
| 32 | -I$(BRDCM_SRC)/src/core/platform \ |
| 33 | -I$(BRDCM_SRC)/src/common/config \ |
| 34 | -I$(BRDCM_SRC)/src/common/include \ |
| 35 | -I$(BRDCM_SRC)/build/core/src/common/include \ |
| 36 | -I$(BRDCM_SRC)/src/common/utils \ |
| 37 | -I$(BRDCM_SRC)/build/core/src/common/utils\ |
| 38 | -I$(BRDCM_SRC)/3rdparty/linenoise \ |
| 39 | -I$(BRDCM_SRC)/build/core/3rdparty/linenoise \ |
| 40 | -I$(BRDCM_SRC)/build/core/src/common/bal_dist_utils \ |
| 41 | -I$(BRDCM_SRC)/src/common/bal_dist_utils \ |
| 42 | -I$(BRDCM_SRC)/src/common/cli \ |
| 43 | -I$(BRDCM_SRC)/build/core/src/common/cli \ |
| 44 | -I$(BRDCM_SRC)/src/common/dev_log \ |
| 45 | -I$(BRDCM_SRC)/build/core/src/common/dev_log \ |
| 46 | -I$(BRDCM_SRC)/src/common/os_abstraction/os_cli \ |
| 47 | -I$(BRDCM_SRC)/build/core/src/common/os_abstraction/os_cli \ |
| 48 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_driver/api \ |
| 49 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_driver/host_api \ |
| 50 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_customized/embedded_cli \ |
| 51 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_customized/os_abstraction/os_cli \ |
| 52 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_driver/transport \ |
| 53 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_driver/model \ |
| 54 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_driver/common_gpon \ |
| 55 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_driver/sw_version \ |
| 56 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_reference/api_dev_log \ |
| 57 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_reference/api_cli \ |
| 58 | -I$(BRDCM_SRC)/3rdparty/maple/sdk/host_reference/device_selector \ |
| 59 | -I$(BRDCM_SRC)/src/lib/libobjmsg \ |
| 60 | -I$(BRDCM_SRC)/build/core/src/lib/libobjmsg \ |
| 61 | -I$(BRDCM_SRC)/src/lib/libbalapi \ |
| 62 | -I$(BRDCM_SRC)/build/core/src/lib/libbalapi \ |
| 63 | -I$(BRDCM_SRC)/src/lib/libbalapicli \ |
| 64 | -I$(BRDCM_SRC)/build/core/src/lib/libbalapicli \ |
| 65 | -I$(BRDCM_SRC)/src/common/bal_app_utils \ |
| 66 | -I$(BRDCM_SRC)/build/core/src/common/bal_app_utils \ |
| 67 | -I$(BRDCM_SRC)/src/balapiend \ |
| 68 | -I$(BRDCM_SRC)/build/core/src/balapiend \ |
| 69 | -I$(BRDCM_SRC)/src/common/bal_intg_app_calls \ |
| 70 | -I$(BRDCM_SRC)/build/core/src/common/bal_intg_app_calls \ |
| 71 | -I$(BRDCM_SRC)/src/lib/libautostart \ |
| 72 | -I$(BRDCM_SRC)/build/core/src/lib/libautostart \ |
| 73 | -I$(BRDCM_SRC)/src/lib/libutils \ |
| 74 | -I$(BRDCM_SRC)/build/core/src/lib/libutils \ |
| 75 | -I$(BRDCM_SRC)/src/lib/libtopology \ |
| 76 | -I$(BRDCM_SRC)/build/core/src/lib/libtopology \ |
| 77 | -I$(BRDCM_SRC)/src/core/util/mac \ |
| 78 | -I$(BRDCM_SRC)/build/core/src/core/util/mac \ |
| 79 | -I$(BRDCM_SRC)/3rdparty/bcm-sdk/build/sdk-all-6.5.7/include \ |
| 80 | -I$(BRDCM_SRC)/3rdparty/bcm-sdk/build/sdk-all-6.5.7/libs/phymod/include \ |
| 81 | -I$(BRDCM_SRC)/src/core/util/switch/dpp \ |
| 82 | -I$(BRDCM_SRC)/build/core/src/core/util/switch/dpp \ |
| 83 | -I$(BRDCM_SRC)/src/core/util/switch/esw \ |
| 84 | -I$(BRDCM_SRC)/build/core/src/core/util/switch/esw \ |
| 85 | -I$(BRDCM_SRC)/src/core/util/switch \ |
| 86 | -I$(BRDCM_SRC)/build/core/src/core/util/switch \ |
| 87 | -I$(BRDCM_SRC)/src/lib/librscmgr \ |
| 88 | -I$(BRDCM_SRC)/build/core/src/lib/librscmgr \ |
| 89 | -I$(BRDCM_SRC)/src/lib/libcmdline \ |
| 90 | -I$(BRDCM_SRC)/build/core/src/lib/libcmdline \ |
| 91 | -I$(BRDCM_SRC)/src/core/main \ |
| 92 | -I$(BRDCM_SRC)/build/core/src/core/main \ |
| 93 | -I$(BRDCM_SRC)/src/core/main \ |
| 94 | -I$(BRDCM_SRC)/src/common/include \ |
| 95 | -I$(BRDCM_SRC)/build/core/src/common/include \ |
| 96 | -I$(BRDCM_SRC)/build/core/include \ |
| 97 | $(GRPC_C_INC) |
| 98 | |
| 99 | VERBOSE=@ |
| 100 | ifeq ($V, 1) |
| 101 | VERBOSE= |
| 102 | endif |
| 103 | |
| 104 | OBJ=$(SRC:.c=.o) |
| 105 | |
| 106 | %.o: %.c |
| 107 | @echo "(CC) $*.c ..." |
| 108 | $(VERBOSE) $(CC) $(C_OPTS) $(INC_PATH) -c $*.c |
| 109 | |
| 110 | $(LIB):$(OBJ) |
| 111 | @echo "Creating Archive $(LIB) ..." |
| 112 | $(VERBOSE) $(AR) rcs $(LIB) $(OBJ) |
| 113 | |
| 114 | all: $(LIB) |
| 115 | |
| 116 | clean: |
| 117 | rm -f *.o \ |
| 118 | rm -f *.d \ |
| 119 | rm -f *.a |