https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: 073f901efadccdafe1a1223ac3d719f2f622b5f5 authored by a1ex on 22 October 2013, 21:27:16 UTC
Close branch marci1/library_mlc-edited-online-with-bitbucket-1370693112483.
Tip revision: 073f901
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