Makefile
32 lines
| 902 B
| text/x-makefile
|
MakefileLexer
r6 | ||||
PROJECTDIR = `pwd` | ||||
LIBUC = /opt/libuc2 | ||||
|
r15 | PROJECTFILE = mbed.pro | ||
include $(LIBUC)/rules/common/rules.mk | ||||
r6 | ||||
HEADERSINSTALLPATH = $(LIBUC_BSP_INC_DIR)/mbed | ||||
HEADERS += bsp.h | ||||
LIBSOURCES += bsp.c | ||||
r12 | OBJDIR = obj | |||
BINDIR = bin | ||||
r6 | OBJECTFILES = $(LIBSOURCES:.c=.o) | |||
r12 | OBJECTFILES := $(addprefix $(OBJDIR)/,$(OBJECTFILES)) | |||
|
r15 | ARCH = lpc17XX-arm-none-eabi-gcc | ||
ARCHFOLDER = $(LIBUC)/rules/lpc17XX-arm-none-eabi-gcc | ||||
r6 | TARGET=libbsp | |||
r12 | LIBUC_INCLUDES=$(LIBUC_INC_DIR_UART_CMD) $(LIBUC_INC_DIR_CORE_CMD) $(LIBUC_INC_DIR_UHANDLE_CMD) | |||
LIBUC_LIBRARIES=$(LIBUC_LIBS_DIR_UART_CMD) $(LIBUC_LIBS_UART) $(LIBUC_LIBS_DIR_CORE_CMD) $(LIBUC_LIBS_CORE) $(LIBUC_LIBS_DIR_UHANDLE_CMD) $(LIBUC_LIBS_UHANDLE) | ||||
r6 | TARGETINSTALLPATH=$(LIBUC_BSP_BIN_DIR)/mbed | |||
HEADERSINSTALLPATH=$(LIBUC_BSP_INC_DIR)/mbed | ||||
BSP=generic | ||||
r9 | include $(ARCHFOLDER)/rules.mk | |||
r6 | ||||
|
r15 | |||
r6 | all:lib | |||
@echo Code compiled | ||||
r12 | ||||
|
r14 | libclean: | ||
r12 | rm -f $(TARGETINSTALLPATH)/*.a | |||
rm -f $(HEADERSINSTALLPATH)/*.h | ||||