Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
502 stars 194 forks source link

Makefile: Use make env-variable `OS` for os detection #84

Closed pogojotz closed 5 years ago

pogojotz commented 5 years ago

...with fallback to uname on non-Windows OSs.

pogojotz commented 5 years ago

I was building with the mingw32 version shipped with Qt5.9.6, which doesn't have any uname and resulted in the library name AdsLib-.a (expected: AdsLib-win32.a).

pbruenn commented 5 years ago

Thanks for your idea. I decided against another if, then, else to keep the Makefile more readable. Let me know if that version isn't working with your mingw setup.