ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/GPS/GNUmakefile
(Generate patch)

Comparing SteeringWheelRemote/GNUmakefile (file contents):
Revision 14 by douglas, 2007-05-14T18:24:34-07:00 vs.
Revision 16 by douglas, 2007-05-21T11:08:55-07:00

# Line 6 | Line 6
6  
7   common := $(shell realpath $(CURDIR)/../Common)
8  
9 + include $(common)/common.mk
10 +
11   CPPFLAGS := -MD -I/usr/local/include -I$(common) \
12          $(shell pkg-config --cflags-only-I glib-2.0)
13   CXXFLAGS := -Wall -pedantic -g -O2
# Line 18 | Line 20 | LDLIBS := -lpcre $(shell pkg-config --li
20   all: SteeringWheelRemote
21  
22   SteeringWheelRemote: SteeringWheelRemote.o Audacious.o $(common)/libtruck.a
21        @echo [$(+F)]
22        @$(CXX) $(LDFLAGS) -o $@ $+ $(LOADLIBES) $(LDLIBS)
23        @echo [$(@F)]
24
25 %.o: %.cpp
26        @echo [$(<F)]
27        @$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
28        @echo [$(@F)]
23  
24   Audacious.o: Audacious.cpp
25 <        @echo [$(<F)]
25 >        @echo "$(bright)$(white)compile\t$(blue)[$(reset)$(<F)$(bright)$(blue)]$(reset)"
26          @$(CXX) $(CPPFLAGS) $(shell pkg-config --cflags-only-I audacious) \
27                  $(filter-out -pedantic,$(CXXFLAGS)) \
28                  $(shell pkg-config --cflags-only-other audacious) -c -o $@ $<
29 <        @echo [$(@F)]
29 >        @echo "$(bright)$(white)compile\t$(green)[$(reset)$(@F)$(bright)$(green)]$(reset)"
30  
31 < $(common)/libtruck.a: $(common)/posix.o $(common)/regex.o
31 > $(common)/libtruck.a: $(common)/truck.o $(common)/posix.o $(common)/regex.o
32          @$(MAKE) --no-print-directory -C $(@D) $(@F)
33  
34   -include *.d
35  
36   clean:
37 <        @rm -fv SteeringWheelRemote *.core *.d *.o
37 >        @echo "$(bright)$(white)clean\t$(green)[$(reset)$(shell rm -fv \
38 >                SteeringWheelRemote *.core *.d *.o)$(bright)$(green)]$(reset)"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines