mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
build tweaks
This commit is contained in:
parent
366ccd969f
commit
daeaaa860c
@ -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 = {
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user