added a better mechanism for differentiating compilation of modules between FxCG50 and fx9860G
This commit is contained in:
parent
3e302b1b34
commit
05bfce99d6
|
@ -1,6 +1,7 @@
|
|||
include ../../py/mkenv.mk
|
||||
|
||||
SH_CFLAGS := -DFX9860G
|
||||
TARGETCASIO := "FX9860G"
|
||||
SH_LDFLAGS := -T fx9860g.ld -ljustui-fx -lm -lgint-fx -lc -lgint-fx -lgcc
|
||||
|
||||
SH_ASSETS := \
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
include ../../py/mkenv.mk
|
||||
|
||||
SH_CFLAGS := -DFXCG50
|
||||
TARGETCASIO := "FXCG50"
|
||||
SH_LDFLAGS := -T fxcg50.ld -ljustui-cg -lm -lgint-cg -lc -lgint-cg -lgcc
|
||||
|
||||
SH_ASSETS := img_modifier_states.png font_9.png font_13.png font_19.png PoliceNW.png
|
||||
|
|
|
@ -15,9 +15,6 @@ SRC_C = \
|
|||
ports/sh/debug.c \
|
||||
ports/sh/keymap.c \
|
||||
ports/sh/modcasioplot.c \
|
||||
ports/sh/numworks/modkandinsky.c \
|
||||
ports/sh/numworks/ion.c \
|
||||
ports/sh/numworks/time.c \
|
||||
ports/sh/modgint.c \
|
||||
ports/sh/mphalport.c \
|
||||
ports/sh/objgintimage.c \
|
||||
|
@ -30,13 +27,33 @@ SRC_C = \
|
|||
SRC_QSTR += \
|
||||
ports/sh/main.c \
|
||||
ports/sh/modcasioplot.c \
|
||||
ports/sh/numworks/modkandinsky.c \
|
||||
ports/sh/numworks/ion.c \
|
||||
ports/sh/numworks/time.c \
|
||||
ports/sh/modgint.c \
|
||||
ports/sh/objgintimage.c \
|
||||
ports/sh/pyexec.c \
|
||||
|
||||
|
||||
ifeq ($(TARGETCASIO),"FXCG50")
|
||||
$(info ************ FXCG50 VERSION ************ )
|
||||
$(info ********* Add Numworks modules ********* )
|
||||
SRC_C += \
|
||||
ports/sh/numworks/modkandinsky.c \
|
||||
ports/sh/numworks/ion.c \
|
||||
ports/sh/numworks/time.c \
|
||||
|
||||
SRC_QSTR += \
|
||||
ports/sh/numworks/modkandinsky.c \
|
||||
ports/sh/numworks/ion.c \
|
||||
ports/sh/numworks/time.c
|
||||
|
||||
|
||||
endif
|
||||
|
||||
ifeq ($(TARGETCASIO),"FX9860G")
|
||||
$(info *********** FX9860G VERSION *********** )
|
||||
|
||||
endif
|
||||
|
||||
|
||||
ASSETS_O := $(SH_ASSETS:%=$(BUILD)/sh_assets/%.o)
|
||||
|
||||
OBJ = $(PY_O) $(ASSETS_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#ifdef FXCG50
|
||||
|
||||
//---------------------------------------------------------------------------//
|
||||
// ____ PythonExtra //
|
||||
//.-'`_ o `;__, A community port of MicroPython for CASIO calculators. //
|
||||
|
@ -204,5 +202,3 @@ const mp_obj_module_t ion_module = {
|
|||
};
|
||||
|
||||
MP_REGISTER_MODULE(MP_QSTR_ion, ion_module);
|
||||
|
||||
#endif // FXCG50
|
|
@ -1,5 +1,3 @@
|
|||
#ifdef FXCG50
|
||||
|
||||
//---------------------------------------------------------------------------//
|
||||
// ____ PythonExtra //
|
||||
//.-'`_ o `;__, A community port of MicroPython for CASIO calculators. //
|
||||
|
@ -320,5 +318,3 @@ const mp_obj_module_t kandinsky_module = {
|
|||
};
|
||||
|
||||
MP_REGISTER_MODULE(MP_QSTR_kandinsky, kandinsky_module);
|
||||
|
||||
#endif //FXCG50
|
|
@ -1,5 +1,3 @@
|
|||
#ifdef FXCG50
|
||||
|
||||
//---------------------------------------------------------------------------//
|
||||
// ____ PythonExtra //
|
||||
//.-'`_ o `;__, A community port of MicroPython for CASIO calculators. //
|
||||
|
@ -111,5 +109,3 @@ const mp_obj_module_t time_module = {
|
|||
};
|
||||
|
||||
MP_REGISTER_MODULE(MP_QSTR_time, time_module);
|
||||
|
||||
#endif //FXCG50
|
Loading…
Reference in New Issue