# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # # Configure NimBLE variables NIMBLE_ROOT := ../../.. NIMBLE_CFG_TINYCRYPT := 1 include $(NIMBLE_ROOT)/porting/nimble/Makefile.defs # Add dummy NPL, dummy HCI transport and all NimBLE sources to build SRC = \ $(NIMBLE_ROOT)/porting/npl/dummy/src/npl_os_dummy.c \ $(NIMBLE_ROOT)/porting/npl/dummy/src/hci_dummy.c \ $(NIMBLE_SRC) \ main.c \ # Add dummy NPL and all NimBLE directories to include paths INC = \ $(NIMBLE_ROOT)/porting/npl/dummy/include \ $(NIMBLE_INCLUDE) \ OBJ := $(SRC:.c=.o) CFLAGS := $(NIMBLE_CFLAGS) .PHONY: all clean .DEFAULT: all all: dummy clean: rm $(OBJ) -f rm dummy -f %.o: %.c $(CC) -m32 -c $(addprefix -I, $(INC)) $(CFLAGS) -o $@ $< dummy: $(OBJ) $(CC) -m32 -o $@ $^