2015-03-29 00:02:03 +01:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2014-11-29T15:53:29
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
|
2015-05-22 01:21:02 +02:00
|
|
|
TARGET = newrplfw.elf
|
|
|
|
TEMPLATE = app
|
2015-04-05 23:15:16 +02:00
|
|
|
CONFIG = static ordered
|
2015-03-29 00:02:03 +01:00
|
|
|
|
2015-08-13 13:44:05 +02:00
|
|
|
DEFINES += TARGET_50G NDEBUG
|
2015-03-29 00:02:03 +01:00
|
|
|
|
2015-05-31 17:52:11 +02:00
|
|
|
|
|
|
|
# DO NOT ALTER THE ORDER OF THESE MODULES
|
|
|
|
|
|
|
|
|
2015-03-29 00:02:03 +01:00
|
|
|
SOURCES +=\
|
2015-04-05 23:15:16 +02:00
|
|
|
firmware/sys/target_50g/preamble.c \
|
|
|
|
firmware/sys/target_50g/boot.c \
|
|
|
|
firmware/sys/target_50g/battery.c \
|
|
|
|
firmware/sys/target_50g/cpu.c \
|
|
|
|
firmware/sys/target_50g/exception.c \
|
|
|
|
firmware/sys/target_50g/irq.c \
|
|
|
|
firmware/sys/target_50g/keyboard.c \
|
2015-05-31 17:52:11 +02:00
|
|
|
firmware/sys/keybcommon.c \
|
2015-04-05 23:15:16 +02:00
|
|
|
firmware/sys/target_50g/lcd.c \
|
|
|
|
firmware/sys/target_50g/stdlib.c \
|
|
|
|
firmware/sys/target_50g/timer.c \
|
|
|
|
firmware/sys/target_50g/mem.c \
|
2015-11-06 12:32:03 +01:00
|
|
|
firmware/sys/target_50g/flash.c \
|
2015-08-13 13:44:05 +02:00
|
|
|
newrpl/decimal.c \
|
2016-01-23 16:44:05 +01:00
|
|
|
newrpl/sysvars.c \
|
2015-08-13 13:44:05 +02:00
|
|
|
newrpl/dectranscen.c \
|
|
|
|
newrpl/atan_1_8_comp.c \
|
|
|
|
newrpl/atan_2_8_comp.c \
|
|
|
|
newrpl/atan_5_8_comp.c \
|
|
|
|
newrpl/atanh_1_8_comp.c \
|
|
|
|
newrpl/atanh_2_8_comp.c \
|
|
|
|
newrpl/atanh_5_8_comp.c \
|
2015-03-29 00:02:03 +01:00
|
|
|
newrpl/compiler.c \
|
2015-08-13 13:44:05 +02:00
|
|
|
newrpl/cordic_K_8_comp.c \
|
|
|
|
newrpl/cordic_Kh_8_comp.c \
|
2015-03-29 00:02:03 +01:00
|
|
|
newrpl/datastack.c \
|
|
|
|
newrpl/directory.c \
|
|
|
|
newrpl/errors.c \
|
|
|
|
newrpl/gc.c \
|
|
|
|
newrpl/lam.c \
|
2015-11-05 23:50:51 +01:00
|
|
|
newrpl/lib-20-comments.c \
|
2015-03-29 00:02:03 +01:00
|
|
|
newrpl/lib-24-string.c \
|
|
|
|
newrpl/lib-28-dirs.c \
|
|
|
|
newrpl/lib-30-complex.c \
|
2015-08-27 14:06:23 +02:00
|
|
|
newrpl/lib-32-lam.c \
|
2016-04-09 22:32:06 +02:00
|
|
|
newrpl/lib-48-angles.c \
|
2015-10-17 13:43:24 +02:00
|
|
|
newrpl/lib-52-matrix.c \
|
|
|
|
newrpl/lib-54-units.c \
|
|
|
|
newrpl/lib-56-symbolic.c \
|
|
|
|
newrpl/lib-62-lists.c \
|
2015-09-16 16:38:24 +02:00
|
|
|
newrpl/lib-64-arithmetic.c \
|
2015-08-27 14:06:23 +02:00
|
|
|
newrpl/lib-65-system.c \
|
2015-03-29 00:02:03 +01:00
|
|
|
newrpl/lib-66-transcendentals.c \
|
|
|
|
newrpl/lib-68-flags.c \
|
|
|
|
newrpl/lib-70-binary.c \
|
|
|
|
newrpl/lib-72-stack.c \
|
|
|
|
newrpl/lib-4080-localenv.c \
|
|
|
|
newrpl/lib-4090-overloaded.c \
|
|
|
|
newrpl/lib-common.c \
|
|
|
|
newrpl/lib-eight-docol.c \
|
|
|
|
newrpl/lib-nine-docol2.c \
|
|
|
|
newrpl/lib-ten-reals.c \
|
|
|
|
newrpl/lib-twelve-bint.c \
|
|
|
|
newrpl/lib-two-ident.c \
|
|
|
|
newrpl/lists.c \
|
2015-08-21 22:59:01 +02:00
|
|
|
newrpl/matrix.c \
|
2015-11-05 23:50:51 +01:00
|
|
|
newrpl/units.c \
|
2015-03-29 00:02:03 +01:00
|
|
|
newrpl/returnstack.c \
|
|
|
|
newrpl/romlibs.c \
|
|
|
|
newrpl/runstream.c \
|
|
|
|
newrpl/symbolic.c \
|
|
|
|
newrpl/tempob.c \
|
2015-08-21 22:59:01 +02:00
|
|
|
newrpl/backup.c \
|
|
|
|
newrpl/sanity.c \
|
2015-05-15 04:13:49 +02:00
|
|
|
newrpl/utf8lib.c \
|
2015-05-22 01:21:02 +02:00
|
|
|
newrpl/utf8data.c \
|
2015-11-05 23:50:51 +01:00
|
|
|
newrpl/autocomplete.c \
|
|
|
|
newrpl/arithmetic.c \
|
2015-08-27 14:06:23 +02:00
|
|
|
firmware/hal_globals.c \
|
|
|
|
firmware/ggl/ggl/ggl_bitblt.c \
|
|
|
|
firmware/ggl/ggl/ggl_bitbltoper.c \
|
|
|
|
firmware/ggl/ggl/ggl_filter.c \
|
|
|
|
firmware/ggl/ggl/ggl_fltdarken.c \
|
|
|
|
firmware/ggl/ggl/ggl_fltlighten.c \
|
2016-01-07 23:07:09 +01:00
|
|
|
firmware/ggl/ggl/ggl_fltinvert.c \
|
2015-08-27 14:06:23 +02:00
|
|
|
firmware/ggl/ggl/ggl_getnib.c \
|
|
|
|
firmware/ggl/ggl/ggl_hblt.c \
|
|
|
|
firmware/ggl/ggl/ggl_hbltfilter.c \
|
|
|
|
firmware/ggl/ggl/ggl_hbltoper.c \
|
|
|
|
firmware/ggl/ggl/ggl_hline.c \
|
|
|
|
firmware/ggl/ggl/ggl_initscr.c \
|
|
|
|
firmware/ggl/ggl/ggl_mkcolor.c \
|
|
|
|
firmware/ggl/ggl/ggl_mkcolor32.c \
|
|
|
|
firmware/ggl/ggl/ggl_opmask.c \
|
|
|
|
firmware/ggl/ggl/ggl_optransp.c \
|
|
|
|
firmware/ggl/ggl/ggl_ovlblt.c \
|
|
|
|
firmware/ggl/ggl/ggl_pltnib.c \
|
|
|
|
firmware/ggl/ggl/ggl_rect.c \
|
|
|
|
firmware/ggl/ggl/ggl_rectp.c \
|
|
|
|
firmware/ggl/ggl/ggl_revblt.c \
|
|
|
|
firmware/ggl/ggl/ggl_scrolldn.c \
|
|
|
|
firmware/ggl/ggl/ggl_scrolllf.c \
|
|
|
|
firmware/ggl/ggl/ggl_scrollrt.c \
|
|
|
|
firmware/ggl/ggl/ggl_scrollup.c \
|
|
|
|
firmware/ggl/ggl/ggl_vline.c \
|
|
|
|
firmware/ui_cmdline.c \
|
2015-12-03 16:01:25 +01:00
|
|
|
firmware/ui_softmenu.c \
|
2015-08-27 14:06:23 +02:00
|
|
|
firmware/hal_battery.c \
|
|
|
|
firmware/hal_keyboard.c \
|
|
|
|
firmware/hal_screen.c \
|
|
|
|
firmware/sys/graphics.c \
|
|
|
|
firmware/sys/icons.c \
|
2015-05-22 01:21:02 +02:00
|
|
|
firmware/sys/Font6A.c \
|
2015-05-30 14:52:52 +02:00
|
|
|
firmware/sys/Font5C.c \
|
2015-08-02 17:19:22 +02:00
|
|
|
firmware/sys/Font7A.c \
|
|
|
|
firmware/sys/Font8C.c \
|
2015-08-28 14:34:26 +02:00
|
|
|
firmware/sys/Font8D.c \
|
2016-05-30 17:00:59 +02:00
|
|
|
firmware/hal_msgenglish.c \
|
|
|
|
firmware/sys/target_50g/sddriver.c \
|
2016-06-15 02:20:05 +02:00
|
|
|
firmware/sys/fsystem/fatconvert.c \
|
|
|
|
firmware/sys/fsystem/fsattr.c \
|
|
|
|
firmware/sys/fsystem/fscalcfreespace.c \
|
|
|
|
firmware/sys/fsystem/fschattr.c \
|
|
|
|
firmware/sys/fsystem/fschdir.c \
|
|
|
|
firmware/sys/fsystem/fschmode.c \
|
|
|
|
firmware/sys/fsystem/fsclose.c \
|
|
|
|
firmware/sys/fsystem/fscloseanddelete.c \
|
|
|
|
firmware/sys/fsystem/fsconvert2shortentry.c \
|
|
|
|
firmware/sys/fsystem/fscreate.c \
|
|
|
|
firmware/sys/fsystem/fsdelete.c \
|
|
|
|
firmware/sys/fsystem/fsdeletedirentry.c \
|
|
|
|
firmware/sys/fsystem/fseof.c \
|
|
|
|
firmware/sys/fsystem/fsexpandchain.c \
|
|
|
|
firmware/sys/fsystem/fsfileisopen.c \
|
|
|
|
firmware/sys/fsystem/fsfileisreferenced.c \
|
|
|
|
firmware/sys/fsystem/fsfilelength.c \
|
|
|
|
firmware/sys/fsystem/fsfindchar.c \
|
|
|
|
firmware/sys/fsystem/fsfindentry.c \
|
|
|
|
firmware/sys/fsystem/fsfindfile.c \
|
|
|
|
firmware/sys/fsystem/fsfindforcreation.c \
|
|
|
|
firmware/sys/fsystem/fsflushbuffers.c \
|
|
|
|
firmware/sys/fsystem/fsflushfatcache.c \
|
|
|
|
firmware/sys/fsystem/fsfreechain.c \
|
|
|
|
firmware/sys/fsystem/fsfreefile.c \
|
|
|
|
firmware/sys/fsystem/fsgetaccessdate.c \
|
|
|
|
firmware/sys/fsystem/fsgetchain.c \
|
|
|
|
firmware/sys/fsystem/fsgetchainsize.c \
|
|
|
|
firmware/sys/fsystem/fsgetcreattime.c \
|
|
|
|
firmware/sys/fsystem/fsgetcurrentvolume.c \
|
|
|
|
firmware/sys/fsystem/fsgetcwd.c \
|
|
|
|
firmware/sys/fsystem/fsgetdatetime.c \
|
|
|
|
firmware/sys/fsystem/fsgeterrormsg.c \
|
|
|
|
firmware/sys/fsystem/fsgetfilename.c \
|
|
|
|
firmware/sys/fsystem/fsgethandle.c \
|
|
|
|
firmware/sys/fsystem/fsgetnametype.c \
|
|
|
|
firmware/sys/fsystem/fsgetnextentry.c \
|
|
|
|
firmware/sys/fsystem/fsgetvolumefree.c \
|
|
|
|
firmware/sys/fsystem/fsgetvolumesize.c \
|
|
|
|
firmware/sys/fsystem/fsgetwritetime.c \
|
|
|
|
firmware/sys/fsystem/fsinit.c \
|
|
|
|
firmware/sys/fsystem/fsmkdir.c \
|
|
|
|
firmware/sys/fsystem/fsmountvolume.c \
|
|
|
|
firmware/sys/fsystem/fsmovedopenfiles.c \
|
|
|
|
firmware/sys/fsystem/fsnamecompare.c \
|
|
|
|
firmware/sys/fsystem/fsopen.c \
|
|
|
|
firmware/sys/fsystem/fsopendir.c \
|
|
|
|
firmware/sys/fsystem/fspackdir.c \
|
|
|
|
firmware/sys/fsystem/fspackname.c \
|
|
|
|
firmware/sys/fsystem/fspatchfatblock.c \
|
|
|
|
firmware/sys/fsystem/fsread.c \
|
|
|
|
firmware/sys/fsystem/fsreadll.c \
|
|
|
|
firmware/sys/fsystem/fsreleaseentry.c \
|
|
|
|
firmware/sys/fsystem/fsrename.c \
|
|
|
|
firmware/sys/fsystem/fsrestart.c \
|
|
|
|
firmware/sys/fsystem/fsrmdir.c \
|
|
|
|
firmware/sys/fsystem/fsseek.c \
|
|
|
|
firmware/sys/fsystem/fssetcasemode.c \
|
|
|
|
firmware/sys/fsystem/fssetcurrentvolume.c \
|
|
|
|
firmware/sys/fsystem/fsshutdown.c \
|
|
|
|
firmware/sys/fsystem/fssleep.c \
|
|
|
|
firmware/sys/fsystem/fsstripsemi.c \
|
|
|
|
firmware/sys/fsystem/fstell.c \
|
|
|
|
firmware/sys/fsystem/fstruncatechain.c \
|
|
|
|
firmware/sys/fsystem/fsupdatedirentry.c \
|
|
|
|
firmware/sys/fsystem/fsvolumeinserted.c \
|
|
|
|
firmware/sys/fsystem/fsvolumemounted.c \
|
|
|
|
firmware/sys/fsystem/fsvolumepresent.c \
|
|
|
|
firmware/sys/fsystem/fswrite.c \
|
|
|
|
firmware/sys/fsystem/fswritefatentry.c \
|
|
|
|
firmware/sys/fsystem/fswritell.c \
|
|
|
|
firmware/sys/fsystem/fsystem.c \
|
|
|
|
firmware/sys/fsystem/misalign.c \
|
|
|
|
firmware/sys/fsystem/fsallocator.c \
|
2016-06-02 19:07:17 +02:00
|
|
|
newrpl/lib-74-sdcard.c
|
2015-03-29 00:02:03 +01:00
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
firmware/include/ggl.h \
|
|
|
|
firmware/include/ui.h \
|
|
|
|
firmware/include/hal_api.h \
|
|
|
|
newrpl/hal.h \
|
|
|
|
newrpl/libraries.h \
|
|
|
|
newrpl/newrpl.h \
|
|
|
|
newrpl/sysvars.h \
|
2015-08-27 14:06:23 +02:00
|
|
|
newrpl/decimal.h \
|
2015-11-05 23:50:51 +01:00
|
|
|
newrpl/errorcodes.h \
|
2016-01-07 23:07:09 +01:00
|
|
|
newrpl/arithmetic.h \
|
|
|
|
newrpl/cmdcodes.h \
|
|
|
|
newrpl/common-macros.h \
|
|
|
|
newrpl/lib-header.h \
|
|
|
|
newrpl/include-all.h \
|
2016-05-30 17:00:59 +02:00
|
|
|
newrpl/romlibs.h \
|
|
|
|
firmware/sys/target_50g/sddriver.h \
|
2016-06-15 02:20:05 +02:00
|
|
|
firmware/sys/fsystem/fsyspriv.h \
|
2016-05-30 17:00:59 +02:00
|
|
|
firmware/sys/target_50g/fsystem.h
|
2015-08-27 14:06:23 +02:00
|
|
|
|
2015-03-29 00:02:03 +01:00
|
|
|
|
2016-04-09 22:32:06 +02:00
|
|
|
RPL_OBJECTS = newrpl/rpl-objects/lib-54.nrpl \
|
|
|
|
newrpl/rpl-objects/lib-9.nrpl \
|
|
|
|
newrpl/rpl-objects/lib-10.nrpl \
|
|
|
|
newrpl/rpl-objects/lib-12.nrpl \
|
|
|
|
newrpl/rpl-objects/lib-20.nrpl \
|
|
|
|
newrpl/rpl-objects/lib-24.nrpl \
|
|
|
|
newrpl/rpl-objects/lib-28.nrpl \
|
|
|
|
newrpl/rpl-objects/lib-30.nrpl \
|
|
|
|
newrpl/rpl-objects/lib-32.nrpl \
|
2016-05-31 23:20:28 +02:00
|
|
|
newrpl/rpl-objects/lib-48.nrpl \
|
2016-06-02 19:07:17 +02:00
|
|
|
newrpl/rpl-objects/lib-64.nrpl \
|
|
|
|
newrpl/rpl-objects/lib-74.nrpl
|
|
|
|
|
2016-01-14 23:45:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-03-29 00:02:03 +01:00
|
|
|
# This might need to be adapted to each cross-compiler installation
|
2016-05-12 19:23:12 +02:00
|
|
|
GCC_LIBDIR = /usr/lib/gcc/arm-none-eabi/4.8.2
|
2015-05-15 04:13:49 +02:00
|
|
|
|
|
|
|
INCLUDEPATH += $$GCC_LIBDIR/include
|
2015-08-19 21:58:24 +02:00
|
|
|
QMAKE_LIBDIR += $$GCC_LIBDIR
|
2015-05-15 04:13:49 +02:00
|
|
|
|
2015-03-29 00:02:03 +01:00
|
|
|
# End of cross-compiler dependent
|
|
|
|
|
|
|
|
|
2015-08-13 13:44:05 +02:00
|
|
|
INCLUDEPATH += firmware/include newrpl /usr/local/include /usr/include
|
2015-03-29 00:02:03 +01:00
|
|
|
|
2015-05-22 01:21:02 +02:00
|
|
|
LIBS += -lgcc
|
2015-03-29 00:02:03 +01:00
|
|
|
|
|
|
|
FORMS +=
|
|
|
|
|
2015-04-05 23:15:16 +02:00
|
|
|
DISTFILES += \
|
2015-08-19 21:58:24 +02:00
|
|
|
firmware/ld.script
|
2015-03-29 00:02:03 +01:00
|
|
|
|
|
|
|
RESOURCES +=
|
|
|
|
|
|
|
|
QMAKE_CC = arm-none-eabi-gcc
|
|
|
|
QMAKE_CXX = arm-none-eabi-g++
|
2015-05-22 01:21:02 +02:00
|
|
|
QMAKE_LINK = arm-none-eabi-gcc
|
2015-04-05 23:15:16 +02:00
|
|
|
#QMAKE_AR_CMD = arm-none-eabi-ar -cqs $(TARGET) $(OBJECTS)
|
2015-05-22 01:21:02 +02:00
|
|
|
#QMAKE_AR_CMD = arm-none-eabi-ld --verbose -T$$PWD/firmware/ld.script -nodefaultlibs -nostdlib -L$$GCC_LIBDIR $(OBJECTS) -lgcc -o $(TARGET).elf
|
2015-11-06 17:01:48 +01:00
|
|
|
QMAKE_CFLAGS_DEBUG =
|
|
|
|
QMAKE_CFLAGS_RELEASE =
|
|
|
|
QMAKE_CFLAGS_SHLIB =
|
|
|
|
QMAKE_CFLAGS_MT =
|
|
|
|
QMAKE_CFLAGS_MT_DBG =
|
|
|
|
QMAKE_CFLAGS_THREAD =
|
2015-05-20 02:32:17 +02:00
|
|
|
QMAKE_CFLAGS = -mtune=arm920t -mcpu=arm920t -mlittle-endian -fomit-frame-pointer -fno-toplevel-reorder -msoft-float -Os -pipe -mthumb-interwork -nostdinc
|
2015-11-06 17:01:48 +01:00
|
|
|
QMAKE_CFLAGS_APP =
|
|
|
|
|
|
|
|
QMAKE_LFLAGS_DEBUG =
|
|
|
|
QMAKE_LFLAGS_SHAPP =
|
|
|
|
QMAKE_LFLAGS_THREAD =
|
2015-05-22 01:21:02 +02:00
|
|
|
QMAKE_LFLAGS = -T$$PWD/firmware/ld.script -nodefaultlibs -nostdlib -L$$GCC_LIBDIR
|
2015-04-05 23:15:16 +02:00
|
|
|
|
2016-05-12 19:23:12 +02:00
|
|
|
QMAKE_POST_LINK = $$PWD/tools-bin/elf2rom $(TARGET)
|
2016-01-11 23:50:59 +01:00
|
|
|
|
|
|
|
|
2016-01-14 23:45:28 +01:00
|
|
|
## Additional RPL compiler, make sure it's in the PATH
|
2016-01-11 23:50:59 +01:00
|
|
|
rpl_compiler.output = auto_${QMAKE_FILE_BASE}.c
|
|
|
|
rpl_compiler.commands = $$PWD/tools-bin/newrpl-comp -c -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
|
|
|
|
rpl_compiler.input = RPL_OBJECTS
|
|
|
|
rpl_compiler.variable_out = SOURCES
|
|
|
|
|
|
|
|
QMAKE_EXTRA_COMPILERS += rpl_compiler
|