Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

Animated GIF demonstrating colorful text output

Objective of This Guide

This tutorial aims to help you create a more visually appealing output in your Makefile, making it easier to read and understand during the compilation process.

Step-by-Step Instructions:

  1. Edit Your Makefile
    Open your Makefile using a text editor of your choice, such as Sublime Text or Notepad++.

  2. Locate the Following Line
    Search for the line:

     
  • $(OBJDIR)/%.o: %.cpp
        

    Your Makefile should currently contain something like this:

    Makefile snippet

  • Modify the Echo Command
    Change the existing line:

     
@echo compile $<
    

to:

 
  • @echo -e "\033[0;32m [OK] \033[0m       \033[0;33m Compiling:\033[0m" $<
        

    After this modification, it should resemble the following:

    Updated Makefile snippet

  • Repeat the Process
    Perform the same alteration for the following lines in your game's Makefile:

     
$(OBJDIR)/version.o: version.cpp
    

and

 
  1. $(OBJDIR)/minilzo.o: minilzo.c
        
  2. Apply Changes to the Database Makefile
    You can also implement these changes in the Makefile for your database, following the same steps.

By following these simple steps, you'll improve the clarity and aesthetics of your Makefile's output, making it not only functional but also engaging.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...