From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4e7df01d3b597a03,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.125.233 with SMTP id mt9mr11477360pbb.5.1334627664765; Mon, 16 Apr 2012 18:54:24 -0700 (PDT) Path: r9ni64852pbh.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: "Rego, P." Newsgroups: comp.lang.ada Subject: Converting a simple makefile in a GPS project. Date: Mon, 16 Apr 2012 18:52:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: <428617.3.1334627550218.JavaMail.geo-discussion-forums@ynnn9> NNTP-Posting-Host: 187.56.99.5 Mime-Version: 1.0 X-Trace: posting.google.com 1334627664 13114 127.0.0.1 (17 Apr 2012 01:54:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 17 Apr 2012 01:54:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=187.56.99.5; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-04-16T18:52:30-07:00 List-Id: I'm getting a bit difficult in converting this makefile in a .gpr project file. -- makefile all: main.hex main.lss sizedummy program: avrdude -pm8 -Uflash:w:"main.hex" main.elf: force avr-gnatmake main -o $@ -Os -mmcu=avr4 --RTS=zfp -largs crtm8._o -nostdlib -lgcc -mavr4 -Tdata=0x00800200 main.lss: main.elf -avr-objdump -h -S main.elf >"main.lss" main.hex: main.elf avr-objcopy -O ihex $< $@ sizedummy: main.elf -avr-size --format=avr --mcu=atmega8 main.elf clean: $(RM) *.o leds *.ihex *.ali *.elf *.hex *.lss *.map -- test.gpr project Test is for Source_Dirs use (".", "src"); for Object_Dir use "obj"; for Exec_Dir use "bin"; for Main use ("main.adb"); package Compiler is for Default_Switches ("ada") use ("-gnatwa", "-gnat05"); end Compiler; package Ide is for Gnat use "avr-gnat"; for Gnatlist use "avr-gnatls"; for Debugger_Command use "avr-gdb"; end Ide; end Test; Where should I put each makefile sentence?