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 17 by douglas, 2007-06-07T18:56:06-07:00 vs.
Audacious/GNUmakefile (file contents), Revision 22 by douglas, 2008-02-08T06:19:12-08:00

# Line 1 | Line 1
1 < # Steering Wheel Remote
1 > # Audacious
2   #
3   # Douglas Thrift
4   #
5   # $Id$
6  
7 < common := $(shell realpath $(CURDIR)/../Common)
7 > common := ../Common
8  
9   include $(common)/common.mk
10 + include Audacious.mk
11  
12 < 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 < LDLIBS := -lpcre $(shell pkg-config --libs-only-l audacious)
12 > CXXFLAGS := $(filter-out -pedantic,$(CXXFLAGS))
13  
14   .PHONY: all clean
15  
16 < all: SteeringWheelRemote
16 > all: libAudacious.a
17  
18 < SteeringWheelRemote: SteeringWheelRemote.o Audacious.o $(common)/libtruck.a
21 <
22 < Audacious.o: Audacious.cpp
23 <        @echo "$(bright)$(white)compile\t$(blue)[$(reset)$(<F)$(bright)$(blue)]$(reset)"
24 <        @$(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 <        @echo "$(bright)$(white)compile\t$(green)[$(reset)$(@F)$(bright)$(green)]$(reset)"
28 <
29 < $(common)/libtruck.a: $(common)/truck.o $(common)/posix.o $(common)/regex.o
30 <        @$(MAKE) --no-print-directory -C $(@D) $(@F)
18 > libAudacious.a: Audacious.o
19  
20   -include *.d
21  
22 < clean:
35 <        @echo "$(bright)$(white)clean\t$(green)[$(reset)$(shell rm -fv \
36 <                SteeringWheelRemote *.core *.d *.o)$(bright)$(green)]$(reset)"
22 > $(eval $(call clean,libAudacious.a *.d *.o))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines