diff --git a/boards/EMBED.py b/boards/EMBED.py index 7b7a0f3d7..bf13bf468 100644 --- a/boards/EMBED.py +++ b/boards/EMBED.py @@ -17,10 +17,12 @@ import pinutils; info = { 'name' : "Embedded Espruino", 'variables' : 4000, # 0 = resizable variables, rather than fixed - 'binary_name' : 'espruino_embedded', + 'binary_name' : 'espruino_embedded.c', 'build' : { 'libraries' : [], - 'makefile' : [] + 'makefile' : [ + 'DEFINES+=-DUSE_CALLFUNCTION_HACK' # for now, just ensure we can be properly multiplatform + ] } }; chip = { diff --git a/make/targets/EMBED.make b/make/targets/EMBED.make index 4669cb8de..deff262f7 100644 --- a/make/targets/EMBED.make +++ b/make/targets/EMBED.make @@ -1,11 +1,10 @@ proj: $(PLATFORM_CONFIG_FILE) $(PROJ_NAME) - -$(PROJ_NAME): $(OBJS) - @echo $($(quiet_)link) - @$(call link) -sourcecode: $(SOURCES) $(PLATFORM_CONFIG_FILE) - cat $(SOURCES) > gen/temp.c - gcc $(DEFINES) $(INCLUDE) -E -P gen/temp.c -o gen/temp2.c - cat targets/embed/embed_header.c gen/temp2.c > sourcecode.c - rm gen/temp.c gen/temp2.c +$(PROJ_NAME): $(SOURCES) $(PLATFORM_CONFIG_FILE) + cat $(SOURCES) > $(PROJ_NAME) + gcc $(DEFINES) $(INCLUDE) -E -P $(PROJ_NAME) -o gen/temp.c + cat targets/embed/embed_header.c gen/temp.c > $(PROJ_NAME) + rm gen/temp.c + @echo ======================================== + @echo Created $(PROJ_NAME) + @echo Test with "gcc $(PROJ_NAME) -lm"