Changeset 1858

Show
Ignore:
Timestamp:
01/24/09 13:35:11 (3 years ago)
Author:
mwhitworth
Message:

Simplify build, add colored prints (easier to read).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/make.inc

    r1668 r1858  
    99RM  = rm -f 
    1010SED = sed 
    11 override CFLAGS += -fomit-frame-pointer -ffreestanding -fno-stack-protector -fno-builtin \ 
     11override CFLAGS += -g -ffreestanding -fno-stack-protector -fno-builtin \ 
    1212        -nostdlib -m32 -Wall -Wextra -Os -I$(DEPTH)include -Wno-unused-parameter 
    1313BE_VERBOSE = 0 
     
    1919 
    2020%.o : %.c 
    21 #       @echo "CC $*.c" 
    22         $(CC) $(CFLAGS) -c $*.c -o $*.o 
     21        @echo "  \033[32mCC $*.c" 
     22        @tput sgr0 
     23        @$(CC) $(CFLAGS) -c $*.c -o $*.o 
    2324        @$(CC) -MM $(CFLAGS) -c $*.c > .deps/$*.d 
    2425 
    2526%.sys : %.c 
    26 #       @echo "CC $*.c" 
    27         $(CC) $(CFLAGS) -DMODULE -fno-common -c $*.c -o $*.sys 
     27        @echo "  \033[32mCC $*.c" 
     28        @tput sgr0 
     29        @$(CC) $(CFLAGS) -DMODULE -fno-common -c $*.c -o $*.sys 
    2830        @$(CC) -MM $(CFLAGS) -DMODULE -c $*.c > .deps/$*.d 
    29         $(SED) -i "s/$*.o/$*.sys/" .deps/$*.d 
     31        @$(SED) -i "s/$*.o/$*.sys/" .deps/$*.d 
    3032 
    3133#gas assembly files