CPCWiki forum

General Category => Programming => Topic started by: funkheld on 20:32, 19 November 20

Title: how is a program compiled by cpctelera?
Post by: funkheld on 20:32, 19 November 20

Hi good afternoon.


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


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


programm main.c is in ordner test


Greeting
Title: Re: how is a program compiled by cpctelera?
Post by: robcfg on 20:57, 19 November 20
Do you have a 'Makefile' file in the folder 'Test'?


In case yes, open a terminal into the Test folder and type "make".
Title: Re: how is a program compiled by cpctelera?
Post by: SRS on 21:45, 19 November 20
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 (http://lronaldo.github.io/cpctelera/files/commandline/cpct_mkproject-.html#cpct_mkproject) command line tool.  setup.sh configures your system's $PATH variable so that you have direct access to cpct_mkproject (http://lronaldo.github.io/cpctelera/files/commandline/cpct_mkproject-.html#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.
Title: Re: how is a program compiled by cpctelera?
Post by: funkheld on 00:30, 20 November 20
hello , thanks for info.


greeting.
Powered by SMFPacks Menu Editor Mod