|
CITS2002 Systems Programming |
| ← prev | next → |
CITS2002 |
CITS2002 schedule |
|||
Detecting the target operating system platform, continuedIn addition to detecting operating system versions and characteristics using the C preprocessor, we can do the same with other utilities.Within Makefiles we can invoke external programs, capture their output into a make variable, and then conditionally execute different commands or apply different command-line options:
And, unsurprisingly, we can perform the same command sequence within shellscripts:
CITS2002 Systems Programming, Lecture 22, p6, 16th October 2023.
|