Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #28360 > unrolled thread

Makefile or not?

Started bypozz <pozzugno@gmail.com>
First post2018-12-03 09:18 +0100
Last post2018-12-07 13:45 +0000
Articles 5 on this page of 45 — 15 participants

Back to article view | Back to comp.arch.embedded


Contents

  Makefile or not? pozz <pozzugno@gmail.com> - 2018-12-03 09:18 +0100
    Re: Makefile or not? David Brown <david.brown@hesbynett.no> - 2018-12-03 11:06 +0100
      Re: Makefile or not? pozz <pozzugno@gmail.com> - 2018-12-03 12:13 +0100
        Re: Makefile or not? David Brown <david.brown@hesbynett.no> - 2018-12-03 12:57 +0100
          Re: Makefile or not? pozz <pozzugno@gmail.com> - 2018-12-03 23:29 +0100
      Re: Makefile or not? Grant Edwards <invalid@invalid.invalid> - 2018-12-03 15:39 +0000
        Re: Makefile or not? Theo Markettos <theom+news@chiark.greenend.org.uk> - 2018-12-03 15:49 +0000
          Re: Makefile or not? Dave Nadler <drn@nadler.com> - 2018-12-03 09:41 -0800
          Re: Makefile or not? David Brown <david.brown@hesbynett.no> - 2018-12-03 21:31 +0100
    Re: Makefile or not? Grant Edwards <invalid@invalid.invalid> - 2018-12-03 15:30 +0000
      Re: Makefile or not? DJ Delorie <dj@delorie.com> - 2018-12-03 14:05 -0500
        Re: Makefile or not? Grant Edwards <invalid@invalid.invalid> - 2018-12-03 19:36 +0000
          Re: Makefile or not? Clifford Heath <no.spam@please.net> - 2018-12-04 09:30 +1100
            Re: Makefile or not? Grant Edwards <invalid@invalid.invalid> - 2018-12-03 23:19 +0000
              Re: Makefile or not? raimond.dragomir@gmail.com - 2018-12-03 22:02 -0800
              Re: Makefile or not? David Brown <david.brown@hesbynett.no> - 2018-12-04 12:18 +0100
                Re: Makefile or not? Grant Edwards <invalid@invalid.invalid> - 2018-12-04 15:46 +0000
                  Re: Makefile or not? Theo Markettos <theom+news@chiark.greenend.org.uk> - 2018-12-04 20:22 +0000
            Re: Makefile or not? Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2018-12-03 15:38 -0800
          Re: Makefile or not? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-12-04 21:25 -0500
            Re: Makefile or not? Grant Edwards <invalid@invalid.invalid> - 2018-12-05 03:22 +0000
            Re: Makefile or not? David Brown <david.brown@hesbynett.no> - 2018-12-05 09:06 +0100
          Re: Makefile or not? George Neuner <gneuner2@comcast.net> - 2018-12-05 11:37 -0500
          Re: Makefile or not? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-12-05 15:37 -0500
            Re: Makefile or not? Grant Edwards <invalid@invalid.invalid> - 2018-12-05 22:34 +0000
              Re: Makefile or not? Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2018-12-05 14:56 -0800
                Re: Makefile or not? Grant Edwards <invalid@invalid.invalid> - 2018-12-05 23:50 +0000
                  Re: Makefile or not? Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2018-12-05 16:27 -0800
                    Re: Makefile or not? Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2018-12-05 17:47 -0800
                      Re: Makefile or not? Theo Markettos <theom+news@chiark.greenend.org.uk> - 2018-12-06 08:12 +0000
                        Re: Makefile or not? Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2018-12-06 10:17 -0800
                          Re: Makefile or not? gtwrek@sonic.net (gtwrek) - 2018-12-06 18:35 +0000
                          Re: Makefile or not? Theo Markettos <theom+news@chiark.greenend.org.uk> - 2018-12-06 18:39 +0000
              Re: Makefile or not? David Brown <david.brown@hesbynett.no> - 2018-12-06 09:22 +0100
              Re: Makefile or not? Theo Markettos <theom+news@chiark.greenend.org.uk> - 2018-12-06 18:46 +0000
                Re: Makefile or not? David Brown <david.brown@hesbynett.no> - 2018-12-06 21:51 +0100
                  Re: Makefile or not? Dave Nadler <drn@nadler.com> - 2018-12-06 13:47 -0800
                    Re: Makefile or not? David Brown <david.brown@hesbynett.no> - 2018-12-06 22:48 +0100
                      Re: Makefile or not? Dave Nadler <drn@nadler.com> - 2018-12-06 14:01 -0800
                    Re: Makefile or not? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2018-12-07 14:54 +0200
      Re: Makefile or not? David Brown <david.brown@hesbynett.no> - 2018-12-03 21:34 +0100
    Re: Makefile or not? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-12-03 11:06 -0500
      Re: Makefile or not? Jacob Sparre Andersen <jacob@jacob-sparre.dk> - 2018-12-03 22:05 +0100
        Re: Makefile or not? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-12-04 21:19 -0500
    Re: Makefile or not? queequeg@trust.no1 (Queequeg) - 2018-12-07 13:45 +0000

Page 3 of 3 — ← Prev page 1 2 [3]


#28372

FromDavid Brown <david.brown@hesbynett.no>
Date2018-12-03 21:34 +0100
Message-ID<pu43vp$ltk$2@dont-email.me>
In reply to#28364
On 03/12/2018 16:30, Grant Edwards wrote:

> 
> I've tried IDEs.  I've worked with others who use IDEs and watched
> them work, and compared it to how I work.  It looks to me like IDEs
> are a tremendous waste of time.
> 

IDE's are extremely useful tools - as long as you use them for their 
strengths, and not their weaknesses.  I use "make" for my builds, but I 
use an IDE for any serious development work.  A good quality editor, 
with syntax highlighting, navigation, as-you-type checking, integration 
with errors and warnings from the builds - it is invaluable as a 
development tool.

[toc] | [prev] | [next] | [standalone]


#28367

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2018-12-03 11:06 -0500
Message-ID<AaydnT2OEszuyZjBnZ2dnUU7-X_NnZ2d@supernews.com>
In reply to#28360
On 12/3/18 3:18 AM, pozz wrote:
> What do you really use for embedded projects? Do you use "standard" 
> makefile or do you rely on IDE functionalities?
> 
> Nowadays every MCU manufacturers give IDE, mostly for free, usually 
> based on Eclipse (Atmel Studio and Microchip are probably the most 
> important exception).
> Anyway most of them use arm gcc as the compiler.
> 
> I usually try to compile the same project for the embedded target and 
> the development machine, so I can speed up development and debugging. I 
> usually use the native IDE from the manufacturer of the target and 
> Code::Blocks (with mingw) for compilation on the development machine.
> So I have two IDEs for a single project.
> 
> I'm thinking to finally move to Makefile, however I don't know if it is 
> a good and modern choice. Do you use better alternatives?
> 
> My major reason to move from IDE compilation to Makefile is the test. I 
> would start adding unit testing to my project. I understood a good 
> solution is to link all the object files of the production code to a 
> static library. In this way it will be very simple to replace production 
> code with testing (mocking) code, simple prepending the testing oject 
> files to static library of production code during linking.
> 
> I think these type of things can be managed with Makefile instead of IDE 
> compilation.
> 
> What do you think?

We use cmake for that--it allows unit testing on a PC, as you say, and 
also automates the process of finding libraries, e.g. for emulating 
peripherals.

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

[toc] | [prev] | [next] | [standalone]


#28373

FromJacob Sparre Andersen <jacob@jacob-sparre.dk>
Date2018-12-03 22:05 +0100
Message-ID<87va4a5nig.fsf@jacob-sparre.dk>
In reply to#28367
Phil Hobbs wrote:

> We use cmake for that--it allows unit testing on a PC, as you say, and
> also automates the process of finding libraries, e.g. for emulating
> peripherals.

How does it automate finding emulation libraries?  That sounds like a
cool feature.

We use GNU Makefiles, but we handle the matching up of emulation
libraries with the real thing by hand.  We then typically use different
source directories for emulation libraries and actual drivers.

Greetings,

Jacob
-- 
A password should be like a toothbrush. Use it every day;
change it regularly; and DON'T share it with friends.

[toc] | [prev] | [next] | [standalone]


#28382

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2018-12-04 21:19 -0500
Message-ID<p5GdnacR5_4mqJrBnZ2dnUU7-Y_NnZ2d@supernews.com>
In reply to#28373
On 12/3/18 4:05 PM, Jacob Sparre Andersen wrote:
> Phil Hobbs wrote:
> 
>> We use cmake for that--it allows unit testing on a PC, as you say, and
>> also automates the process of finding libraries, e.g. for emulating
>> peripherals.
> 
> How does it automate finding emulation libraries?  That sounds like a
> cool feature.
> 
> We use GNU Makefiles, but we handle the matching up of emulation
> libraries with the real thing by hand.  We then typically use different
> source directories for emulation libraries and actual drivers.
> 
> Greetings,
> 
> Jacob
> 

I'll ask my colleague who's doing most of the work on that.

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

[toc] | [prev] | [next] | [standalone]


#28406

Fromqueequeg@trust.no1 (Queequeg)
Date2018-12-07 13:45 +0000
Message-ID<b2430847-6e02-451e-a947-91ceb3756e2c@trust.no1>
In reply to#28360
pozz <pozzugno@gmail.com> wrote:

> I'm thinking to finally move to Makefile, however I don't know if it is 
> a good and modern choice. Do you use better alternatives?

If you aren't afraid of Python, take a look at scons. I usually use scons 
to do the compilation and makefile to do everything else.

-- 
https://www.youtube.com/watch?v=9lSzL1DqQn0

[toc] | [prev] | [standalone]


Page 3 of 3 — ← Prev page 1 2 [3]

Back to top | Article view | comp.arch.embedded


csiph-web