lpc17XX.mk
29 lines
| 839 B
| text/x-makefile
|
MakefileLexer
r11 | PROJECTDIR = `pwd` | |||
LIBUC = /opt/libuc2 | ||||
HEADERSINSTALLPATH = $(LIBUC_INC_DIR_24LC0X) | ||||
HEADERS += 24LC0X.h | ||||
LIBSOURCES += 24LC0X.c | ||||
r12 | OBJDIR = obj | |||
BINDIR = bin | ||||
r11 | OBJECTFILES = $(LIBSOURCES:.c=.o) | |||
r12 | OBJECTFILES := $(addprefix $(OBJDIR)/,$(OBJECTFILES)) | |||
|
r15 | ARCH = lpc17XX-arm-none-eabi-gcc | ||
ARCHFOLDER = $(LIBUC)/rules/lpc17XX-arm-none-eabi-gcc | ||||
r11 | TARGET=lib24lc0X | |||
r12 | LIBUC_INCLUDES=$(LIBUC_INC_DIR_CORE_CMD) $(LIBUC_INC_DIR_IIC_CMD) $(LIBUC_INC_DIR_UHANDLE_CMD) | |||
LIBUC_LIBRARIES=$(LIBUC_LIBS_DIR_CORE_CMD) $(LIBUC_LIBS_CORE) $(LIBUC_LIBS_DIR_IIC_CMD) $(LIBUC_LIBS_IIC) $(LIBUC_LIBS_DIR_UHANDLE_CMD) $(LIBUC_LIBS_UHANDLE) | ||||
r11 | TARGETINSTALLPATH=$(LIBUC_LIBS_DIR_24LC0X) | |||
HEADERSINSTALLPATH=$(LIBUC_INC_DIR_24LC0X) | ||||
BSP=generic | ||||
include $(ARCHFOLDER)/rules.mk | ||||
|
r15 | |||
r11 | all:lib | |||
@echo Code compiled | ||||
r12 | ||||
|
r14 | libclean: | ||
r12 | rm -f $(TARGETINSTALLPATH)/*.a | |||
rm -f $(HEADERSINSTALLPATH)/*.h | ||||