hercules-390 / hyperion

Hercules 390
Other
246 stars 69 forks source link

Compiling Hercules on gcc/linux #296

Open wgs777 opened 2 years ago

wgs777 commented 2 years ago

Hi,

I'd like to build Hercules Hyperion 4.0 from scratch on Linux and try using different compilers. I'm not seeing the CC and CFLAGS variables anywhere in the make files where you can change compilers or compiler options.

[1] Where are the CC and CFLAGS set? [2] What specific command would build the entire Hercules source on Linux using GCC.

Thanks, Bill

CodeAsm commented 8 months ago

have you tried looking in the cmakelists ? https://github.com/hercules-390/hyperion/blob/master/CMakeLists.txt according to https://stackoverflow.com/questions/10085945/set-cflags-and-cxxflags-options-using-cmake you can set these after setting the project.

In general they seem to use CMake, im only recently started working with CMake but I think you should look into cmake docs.