Comments (2)
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.
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 innerfor
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)
- `mk_obj_dirs` was not being processed in the Thor test! :-o
- Give the macro defs. some air, as spaces are ignored around the `=`!
- Autodetect build option changes to trigger full rebuild
- What to do with the "cmdline macros can't be modified" NMAKE lameness?
- Solve that `/` vs `\` mystery in the `objs` rule...
- Custom build options: propagate them through recursion
- Add some tests...
- Capitalize the cfg. options
- `x.cpp.tmp` still picked up as a .cpp source by nmake?! :-o
- Subproject mode, via `!include`-ing other Jumpstart makefiles
- Sync to the customized version in OON
- Investigate the space error seen with OON on GitHub!
- NG: Check regressions with spaces in dir/file paths
- Fix the dumb GH repo tagline
- NG: Test also with SFML!
- NMAKE: Cumulative target rules, even with ::, seem to kill inference rules?!
- NG: Deleting an `.ifc` doesn't trigger recomp. despite the `.ixx.ifc` inference rule
- Recompiling an .ifc doesn't trigger relinking... HOT 1
- NG: !IF [exec] + !INCLUDE instead of recursion? - Would require 2 files!
- NMAKE: inconclusive tests with inheriting cmdline macros... WTF? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nmake-jumpstart.