From a0018675acdbd2d9244d627f40d656131868aade Mon Sep 17 00:00:00 2001 From: Adam Long Date: Sat, 11 Apr 2015 20:24:48 +0000 Subject: [PATCH] Updated makefile to no longer require use of 'find' --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8279031..fd0f2d1 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,8 @@ REMOTEIP=10.20.59.2 CC=arm-frc-linux-gnueabi-g++ CFLAGS=-std=c++11 -O0 -g3 -Wall -c -fmessage-length=0 LDFLAGS=-Wl,-rpath,/opt/GenICam_v2_3/bin/Linux_armv7-a -SOURCES=$(shell find -type f -name "*.cpp") +rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d)) +SOURCES=$(call rwildcard,./,*.cpp) OBJECTS=$(SOURCES:.cpp=.o) WPILIB=/var/frc/wpilib EXEC=bin/FRCUserProgram