iraf-community / x11iraf

X11/GUI utilities and applications for IRAF (xgterm, ximtool, xtapemon)
https://iraf-community.github.io/x11iraf
21 stars 8 forks source link

Replace Imakefiles by Makefiles #19

Closed olebole closed 4 years ago

olebole commented 4 years ago

Imake was a build system introduced for the X11 window system and traditionally used there to build both servers and client applications. However, since 2004 (!), it is deprecated, replaced by autotools in X.org and basically abandoned. While it is still delivered with some Linux distributions, MacOS (XQuartz) does not include it since 2009.

To keep x11iraf compilable in the future, this PR replaces Imake by plain Makefiles. The build structure here is not that difficult, and can easily extended to MacOS and other systems.

This patch also allows a simple customization of the build (by packagers, or for debugging) by setting CFLAGS and LDFLAGS in advance, simplifying future maintenance.

Note that there is no install target, the resulting binaries are kept in their original place: