Makefile
32 lines
| 915 B
| text/x-makefile
|
MakefileLexer
|
r16 | |||
PROJECTDIR = `pwd` | ||||
LIBUC = /opt/libuc2 | ||||
PROJECTFILE = gpio.pro | ||||
include $(LIBUC)/rules/common/rules.mk | ||||
HEADERSINSTALLPATH = $(LIBUC_INC_DIR_GPIO) | ||||
HEADERS += | ||||
LIBSOURCES += gpio.c | ||||
OBJDIR = obj | ||||
BINDIR = bin | ||||
OBJECTFILES = $(LIBSOURCES:.c=.o) | ||||
OBJECTFILES := $(addprefix $(OBJDIR)/,$(OBJECTFILES)) | ||||
ARCH = stm32f4-arm-none-eabi-gcc | ||||
ARCHFOLDER = $(LIBUC)/rules/stm32f4-arm-none-eabi-gcc | ||||
TARGET=libgpio | ||||
LIBUC_INCLUDES=$(LIBUC_INC_DIR_CORE_CMD) $(LIBUC_INC_DIR_UHANDLE_CMD) $(LIBUC_INC_DIR_STLIB_CMD) -I $(LIBUC_INC_DIR_GPIO) | ||||
LIBUC_LIBRARIES=$(LIBUC_LIBS_DIR_CORE_CMD) $(LIBUC_LIBS_CORE) $(LIBUC_LIBS_DIR_UHANDLE_CMD) $(LIBUC_LIBS_UHANDLE) $(LIBUC_LIBS_DIR_STLIB_CMD) $(LIBUC_LIBS_STLIB) | ||||
TARGETINSTALLPATH=$(LIBUC_LIBS_DIR_GPIO) | ||||
HEADERSINSTALLPATH=$(LIBUC_INC_DIR_GPIO) | ||||
BSP=generic | ||||
include $(ARCHFOLDER)/rules.mk | ||||
all:lib | ||||
@echo Code compiled | ||||
libclean: | ||||
rm -f $(TARGETINSTALLPATH)/*.a | ||||
rm -f $(HEADERSINSTALLPATH)/*.h | ||||