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 16 by douglas, 2007-05-21T11:08:55-07:00 vs.
GPS/GNUmakefile (file contents), Revision 23 by douglas, 2008-02-08T07:13:30-08:00

# Line 1 | Line 1
1 < # Steering Wheel Remote
1 > # GPS
2   #
3   # Douglas Thrift
4   #
5   # $Id$
6  
7 < common := $(shell realpath $(CURDIR)/../Common)
7 > common := ../Common
8 > gps := .
9  
10   include $(common)/common.mk
11 <
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
14 < 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)
11 > include $(gps)/GPS.mk
12  
13   .PHONY: all clean
14  
15 < all: SteeringWheelRemote
21 <
22 < SteeringWheelRemote: SteeringWheelRemote.o Audacious.o $(common)/libtruck.a
23 <
24 < Audacious.o: Audacious.cpp
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 "$(bright)$(white)compile\t$(green)[$(reset)$(@F)$(bright)$(green)]$(reset)"
15 > all: libGPS.a
16  
17 < $(common)/libtruck.a: $(common)/truck.o $(common)/posix.o $(common)/regex.o
32 <        @$(MAKE) --no-print-directory -C $(@D) $(@F)
17 > libGPS.a: GPS.o
18  
19   -include *.d
20  
21 < clean:
37 <        @echo "$(bright)$(white)clean\t$(green)[$(reset)$(shell rm -fv \
38 <                SteeringWheelRemote *.core *.d *.o)$(bright)$(green)]$(reset)"
21 > $(eval $(call clean,libGPS.a *.d *.o))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines