ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/DashInterface/GNUmakefile
Revision: 17
Committed: 2007-06-07T18:56:06-07:00 (15 years, 3 months ago) by douglas
Original Path: SteeringWheelRemote/GNUmakefile
File size: 1161 byte(s)
Log Message:
Optimize!

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 17 CPPFLAGS += -I$(common) $(shell pkg-config --cflags-only-I glib-2.0)
12     LDFLAGS := -L/usr/local/lib -L$(common) $(shell pkg-config --libs-only-L \
13     audacious) $(shell pkg-config --libs-only-other audacious)
14 douglas 6 LDLIBS := -lpcre $(shell pkg-config --libs-only-l audacious)
15 douglas 2
16 douglas 3 .PHONY: all clean
17    
18 douglas 1 all: SteeringWheelRemote
19    
20 douglas 6 SteeringWheelRemote: SteeringWheelRemote.o Audacious.o $(common)/libtruck.a
21 douglas 2
22 douglas 6 Audacious.o: Audacious.cpp
23 douglas 16 @echo "$(bright)$(white)compile\t$(blue)[$(reset)$(<F)$(bright)$(blue)]$(reset)"
24 douglas 6 @$(CXX) $(CPPFLAGS) $(shell pkg-config --cflags-only-I audacious) \
25     $(filter-out -pedantic,$(CXXFLAGS)) \
26     $(shell pkg-config --cflags-only-other audacious) -c -o $@ $<
27 douglas 16 @echo "$(bright)$(white)compile\t$(green)[$(reset)$(@F)$(bright)$(green)]$(reset)"
28 douglas 6
29 douglas 16 $(common)/libtruck.a: $(common)/truck.o $(common)/posix.o $(common)/regex.o
30 douglas 6 @$(MAKE) --no-print-directory -C $(@D) $(@F)
31 douglas 3
32 douglas 4 -include *.d
33    
34 douglas 1 clean:
35 douglas 16 @echo "$(bright)$(white)clean\t$(green)[$(reset)$(shell rm -fv \
36     SteeringWheelRemote *.core *.d *.o)$(bright)$(green)]$(reset)"

Properties

Name Value
svn:keywords Id