ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/Common/common.mk
(Generate patch)

Comparing:
Common/GNUmakefile (file contents), Revision 14 by douglas, 2007-05-14T18:24:34-07:00 vs.
Common/common.mk (file contents), Revision 15 by douglas, 2007-05-21T10:38:25-07:00

# Line 4 | Line 4
4   #
5   # $Id$
6  
7 < CPPFLAGS := -MD -I/usr/local/include
8 < CXXFLAGS := -Wall -pedantic -g -O2
7 > SHELL :=/usr/local/bin/bash -O extglob -O xpg_echo
8  
9 < all: libtruck.a
9 > reset           :=\e[0m
10 > bright          :=\e[1m
11 > dim                     :=\e[2m
12 > underscore      :=\e[4m
13 > blink           :=\e[5m
14 > reverse         :=\e[7m
15 > hidden          :=\e[8m
16 > black           :=\e[30m
17 > red                     :=\e[31m
18 > green           :=\e[32m
19 > yellow          :=\e[33m
20 > blue            :=\e[34m
21 > magenta         :=\e[35m
22 > cyan            :=\e[36m
23 > white           :=\e[37m
24 > black_          :=\e[40m
25 > red_            :=\e[41m
26 > green_          :=\e[42m
27 > yellow_         :=\e[43m
28 > blue_           :=\e[44m
29 > magenta_        :=\e[45m
30 > cyan_           :=\e[46m
31 > white_          :=\e[47m
32  
33   %.o: %.cpp
34 <        @echo [$(<F)]
34 >        @echo "$(bright)$(white)$(CXX)$(reset)\t$(bright)$(blue)[$(reset)$(<F)$(bright)$(blue)]$(reset)"
35          @$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
36 <        @echo [$(@F)]
16 <
17 < libtruck.a: posix.o regex.o
18 <        @echo [$(+F)]
19 <        @$(AR) cr $@ $+
20 <        @echo [$(@F)]
21 <
22 < -include *.d
23 <
24 < clean:
25 <        @rm -fv libtruck.a *.d *.o
36 >        @echo "$(bright)$(white)$(CXX)$(reset)\t$(bright)$(green)[$(reset)$(@F)$(bright)$(green)]$(reset)"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines