https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 128459811ce1ff28aea3f9f20971b3d059e76738 authored by alex@thinkpad on 13 October 2012, 17:05:35 UTC
5DC: Added a small joke on "don't click me" :)
Tip revision: 1284598
Makefile
MAKE=make
RM=rm
MV=mv
MKDIR=mkdir

BINARIES_PATH=binaries
LUA_PATH=

#todo: 
# put sources in src/
# unused things in legacy/
# put Makefile.550 and .60 in their platform dir and do: 
#  cd platform/550D.109; make 
#  -> no .o generated in rootdir. and .o in right platform

all: 60D 550D 600D

60D: Makefile.60
	$(MAKE) clean
	$(MAKE) -f Makefile.60
	$(MKDIR) -p $(BINARIES_PATH)/60D.109
	$(MV) autoexec.bin $(BINARIES_PATH)/60D.109

550D: Makefile.550
	$(MAKE) clean
	$(MAKE) -f Makefile.550
	$(MKDIR) -p $(BINARIES_PATH)/550D.109
	$(MV) autoexec.bin $(BINARIES_PATH)/550D.109

600D: Makefile.600
	$(MAKE) clean
	$(MAKE) -f Makefile.600
	$(MKDIR) -p $(BINARIES_PATH)/600D.101
	$(MV) autoexec.bin $(BINARIES_PATH)/600D.101

clean:
	-$(RM) \
		*.o \
		*.a \
		.*.d \
		magiclantern.lds \
		$(LUA_PATH)/*.o \
		$(LUA_PATH)/.*.d \
		*.pdf \
	$(RM) -rf  $(BINARIES_PATH)
back to top