# Steering Wheel Remote # # Douglas Thrift # # $Id$ common := $(shell realpath $(CURDIR)/../Common) CPPFLAGS := -MD -I/usr/local/include -I$(common) CXXFLAGS := -Wall -pedantic -g -O2 LDFLAGS := -L/usr/local/lib -L$(common) LDLIBS := -lpcre -ltruck .PHONY: all clean all: SteeringWheelRemote SteeringWheelRemote: SteeringWheelRemote.cpp $(common)/libtruck.a $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $< $(LOADLIBES) $(LDLIBS) $(common)/libtruck.a: $(common)/posix.o $(common)/regex.o $(MAKE) -C $(@D) $(@F) -include *.d clean: rm -f SteeringWheelRemote *.core *.d