News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

how is a program compiled by cpctelera?

Started by funkheld, 20:32, 19 November 20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

funkheld


Hi good afternoon.


how is a program compiled by cpctelera?
I forgot again.


make.... or makefile.....


programm main.c is in ordner test


Greeting

robcfg

Do you have a 'Makefile' file in the folder 'Test'?


In case yes, open a terminal into the Test folder and type "make".

SRS

like robcfg says ...
a little extract from the help page:
Once setup.sh completes without errors, CPCtelera will be ready to use.  To have a quick glance about what CPCtelera offers, you may enter examples/ folder and check all the examples included.  You can build any one of them just by typing make inside the example folder, then CDT and DSK files will be automatically generated.
For creating your own projects, CPCtelera includes the cpct_mkproject command line tool.  setup.sh configures your system's $PATH variable so that you have direct access to cpct_mkproject anywhere on your system (you should close and open your terminal again after setup.sh finishes).  Creating a new project is as easy as typing this>
cpct_mkproject [project_folder]
Once you have your own new project, you can enter its folder and you will have a Makefile and 2 important subfolders

       
  • src/ is the folder containing source files.  At the start it only contains a main.c file, but you can create new files and folders (1 level of sub-folders) in it.  All .c and .s files below src/ will be automatically detected and compiled when you type in "make" at your project folder.

funkheld


Powered by SMFPacks Menu Editor Mod