include ../config.mk CXXSRC := $(shell find cxx -type f -name '*.cxx') CXXBINS := $(CXXSRC:.cxx=) CSRC := $(shell find c -type f -name '*.c') CBINS := $(CSRC:.c=) all: $(CBINS) $(CXXBINS) %: %.c ../librapida.a $(CC) $(CFLAGS) -I../include $^ -o $@ $(LDFLAGS) %: %.cxx ../librapidaxx.a $(CXX) $(CXXFLAGS) -std=c++11 -I../include $^ -o $@ $(LDFLAGS) ../librapida.a: cd .. && make librapida.a ../librapidaxx.a: cd .. && make librapidaxx.a .PHONY: ../librapida.a ../librapidaxx.a