Makefile
30 lines
| 881 B
| text/x-makefile
|
MakefileLexer
r6 | ||||
PROJECTDIR = `pwd` | ||||
LIBUC = /opt/libuc2 | ||||
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)) | |||
r9 | ARCH = lpc17XX-arm-noabi-gcc | |||
ARCHFOLDER = $(LIBUC)/rules/lpc17XX-arm-noabi-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 | ||||
all:lib | ||||
@echo Code compiled | ||||
r12 | ||||
clean: | ||||
rm -f $(OBJDIR)/*.o | ||||
rm -f $(TARGETINSTALLPATH)/*.a | ||||
rm -f $(HEADERSINSTALLPATH)/*.h | ||||
rm -f $(DEVSOURCESND) | ||||
rm -f *.d | ||||