ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/SteeringWheelRemote/GNUmakefile
Revision: 15
Committed: 2007-05-21T10:38:25-07:00 (15 years, 4 months ago) by douglas
File size: 1333 byte(s)
Log Message:
Colorize!

File Contents

# User Rev Content
1 douglas 1 # Steering Wheel Remote
2     #
3     # Douglas Thrift
4     #
5     # $Id$
6    
7 douglas 2 common := $(shell realpath $(CURDIR)/../Common)
8    
9 douglas 15 include $(common)/common.mk
10    
11 douglas 6 CPPFLAGS := -MD -I/usr/local/include -I$(common) \
12     $(shell pkg-config --cflags-only-I glib-2.0)
13 douglas 2 CXXFLAGS := -Wall -pedantic -g -O2
14 douglas 6 LDFLAGS := -L/usr/local/lib -L$(common) $(shell pkg-config --libs-only-L audacious) \
15     $(shell pkg-config --libs-only-other audacious)
16     LDLIBS := -lpcre $(shell pkg-config --libs-only-l audacious)
17 douglas 2
18 douglas 3 .PHONY: all clean
19    
20 douglas 1 all: SteeringWheelRemote
21    
22 douglas 6 SteeringWheelRemote: SteeringWheelRemote.o Audacious.o $(common)/libtruck.a
23 douglas 15 @echo "$(bright)$(white)$(CXX)\t$(blue)[$(reset)$(+F)$(bright)$(blue)]$(reset)"
24 douglas 6 @$(CXX) $(LDFLAGS) -o $@ $+ $(LOADLIBES) $(LDLIBS)
25 douglas 15 @echo "$(bright)$(white)$(CXX)\t$(green)[$(reset)$(@F)$(bright)$(green)]$(reset)"
26 douglas 2
27 douglas 6 Audacious.o: Audacious.cpp
28 douglas 15 @echo "$(bright)$(white)$(CXX)\t$(blue)[$(reset)$(<F)$(bright)$(blue)]$(reset)"
29 douglas 6 @$(CXX) $(CPPFLAGS) $(shell pkg-config --cflags-only-I audacious) \
30     $(filter-out -pedantic,$(CXXFLAGS)) \
31     $(shell pkg-config --cflags-only-other audacious) -c -o $@ $<
32 douglas 15 @echo "$(bright)$(white)$(CXX)\t$(green)[$(reset)$(@F)$(bright)$(green)]$(reset)"
33 douglas 6
34 douglas 3 $(common)/libtruck.a: $(common)/posix.o $(common)/regex.o
35 douglas 6 @$(MAKE) --no-print-directory -C $(@D) $(@F)
36 douglas 3
37 douglas 4 -include *.d
38    
39 douglas 1 clean:
40 douglas 6 @rm -fv SteeringWheelRemote *.core *.d *.o

Properties

Name Value
svn:keywords Id