TOP_DIR := $(shell /bin/pwd) rm=/bin/rm -f CC= propgcc DEFS= PROGNAME= driver INCLUDES= -I. -I../../API_Lib/ DEFINES= $(INCLUDES) $(DEFS) CFLAGS= -g -Os $(DEFINES) SRCS = main.c rsi_app_util.c rsi_config_init.c OBJS = main.o rsi_app_util.o rsi_config_init.o \ ../../API_Lib/rsi_api_sysinit.o \ ../../API_Lib/rsi_hal_mcu_interrupt.o \ ../../API_Lib/rsi_hal_mcu_ioports.o \ ../../API_Lib/rsi_hal_mcu_spi.o \ ../../API_Lib/rsi_hal_mcu_timers.o \ ../../API_Lib/rsi_interrupt.o \ ../../API_Lib/rsi_lib_util.o \ ../../API_Lib/rsi_spi_api.o \ ../../API_Lib/rsi_spi_band.o \ ../../API_Lib/rsi_spi_bootloader.o \ ../../API_Lib/rsi_spi_disconnect.o \ ../../API_Lib/rsi_spi_execute_cmd.o \ ../../API_Lib/rsi_spi_framerdwr.o \ ../../API_Lib/rsi_spi_functs.o \ ../../API_Lib/rsi_spi_fwupgrade.o \ ../../API_Lib/rsi_spi_iface_init.o \ ../../API_Lib/rsi_spi_init.o \ ../../API_Lib/rsi_spi_interrupt_handler.o \ ../../API_Lib/rsi_spi_ipparam.o \ ../../API_Lib/rsi_spi_join.o \ ../../API_Lib/rsi_spi_memrdwr.o \ ../../API_Lib/rsi_spi_power_mode.o \ ../../API_Lib/rsi_spi_query_bssid_nwtype.o \ ../../API_Lib/rsi_spi_query_conn_status.o \ ../../API_Lib/rsi_spi_query_dhcp_parms.o \ ../../API_Lib/rsi_spi_query_dns.o \ ../../API_Lib/rsi_spi_query_fwversion.o \ ../../API_Lib/rsi_spi_query_net_parms.o \ ../../API_Lib/rsi_spi_query_rssi.o \ ../../API_Lib/rsi_spi_read_packet.o \ ../../API_Lib/rsi_spi_regrdwr.o \ ../../API_Lib/rsi_spi_scan.o \ ../../API_Lib/rsi_spi_send_data.o \ ../../API_Lib/rsi_spi_set_listen_interval.o \ ../../API_Lib/rsi_spi_set_mac_addr.o \ ../../API_Lib/rsi_spi_socket_close.o \ ../../API_Lib/rsi_spi_socket.o \ ../../API_Lib/rsi_spi_send_ludp_data.o \ ../../API_Lib/rsi_spi_store_config.o \ ../../API_Lib/rsi_spi_mode_select.o \ ../../API_Lib/rsi_spi_feat_select.o \ ../../API_Lib/rsi_spi_http_get.o \ ../../API_Lib/rsi_spi_http_post.o \ ../../API_Lib/rsi_spi_query_macaddress.o .c.o: $(rm) $@ $(CC) $(CFLAGS) -c $*.c all: lib $(PROGNAME) $(PROGNAME) : $(OBJS) $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) lib: ${MAKE} -C $(TOP_DIR)/../../API_Lib "TOP_DIR=$(TOP_DIR)" clean: $(rm) $(OBJS) $(PROGNAME) core *~