https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 49af4885b01fec8c9bd4e10a26d4a4ff7bdfb59b authored by a1ex on 22 October 2013, 21:27:52 UTC
Close branch ppluciennik/modules_makefiles.
Tip revision: 49af488
Makefile.modules
include $(TOP_DIR)/Makefile.setup

# should we define a platform for modules? for now use 'all' platform
PLATFORM_INC=$(TOP_DIR)/platform/all
CFLAGS += -DMODULE -DMODULE_NAME=$(MODULE_NAME) $(MODULE_CFLAGS)

MODULE_OUTPUT = $(MODULE_NAME).mo

all:: $(MODULE_OUTPUT)
clean::
	$(call build,CLEAN,$(RM) -f $(MODULE_OBJS) $(MODULE_OUTPUT) *.o *.d)

$(MODULE_OUTPUT): $(MODULE_OBJS)
	$(call build,MODULE,$(LD_REAL) -r -o $@ $^)

install:: all
	cp $(PWD)/$(MODULE_OUTPUT) $(CF_CARD_ML_DIR)/modules

FORCE:
back to top