This project is based on the legacy code from Core War on SourceForge.
To run the project on an M1 Mac, you need to set up an X11 environment by downloading XQuartz.
After installing XQuartz, the X11 folder is typically located at a specific path. Make sure to update the path in the Makefile to match your environment.
CFLAGS += -I/opt/X11/include
LIB += -L/opt/X11/lib -lX11
-
round
Theroundfunction has been included in themath.hheader since the C99 standard.
To avoid conflicts with the legacy code'sroundvariable, the variable name has been changed toround_. -
sighandler
Thesighandlerfunction is no longer available as a built-in function in C99 and later standards.
As a result, any lines containing this function have been commented out.