Code Monkey home page Code Monkey logo

Comments (2)

xparq avatar xparq commented on July 19, 2024

Added obj_source_exts=.cpp .cxx .c, but that's mostly just a reminder... Only used by the lib source collector rule yet, and even that's for a slightly different purpose! :)

from nmake-jumpstart.

xparq avatar xparq commented on July 19, 2024

Hehh, OK, didn't have to wait long... If there's just a dir with no files, but only subdirs, in the tree (like a collection of modules or a dispatching point etc., as in the sfw repo, where I've been testing this), it blows right up already...

  • As a (kinda also hamfisted...) workaround for that, the driver loop now checks for existing sources in every dir and calls NMAKE only if there're things to do:

      if exist %%i\*.cpp !_make_! /c compiling DIR=!_dir_!
      if exist %%i\*.cxx !_make_! /c compiling DIR=!_dir_!
      if exist %%i\*.c   !_make_! /c compiling DIR=!_dir_!
    
  • Well, as we have $(obj_source_exts) (as .cpp .cxx .c) already, this should be an inner for loop iterating that!

  • Also, it could probably send the type info then too, which could allow removing the *.c* hack finally.

  • But another similar hack still remains at the lib creation rule:

     for /r "$(src_dir)\$(lib_src_subdir)" %%o in ($(units_pattern).c*) do  (
    

from nmake-jumpstart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.