# 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 LDLIBS := -lpcre .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) clean: rm -f SteeringWheelRemote *.core *.d