Skip to content

Instantly share code, notes, and snippets.

@jackrosenthal
Created September 18, 2015 00:23
Show Gist options
  • Save jackrosenthal/fb89e51b2caeccd62e24 to your computer and use it in GitHub Desktop.
Save jackrosenthal/fb89e51b2caeccd62e24 to your computer and use it in GitHub Desktop.
HWNO=14
TARGETS=HW$(HWNO) Lab$(HWNO)a Lab$(HWNO)b Lab$(HWNO)c
DIRS=$(addprefix src/,$(TARGETS))
all: $(TARGETS)
%: src/%/*.cpp
clang++ -Wall -Werror -g -std=c++11 -o $(@) $(^) -lsfml-system -lsfml-graphics -lsfml-window
zip:
zip -r src$(HWNO).zip src/ -x *~
setup:
mkdir -p $(DIRS)
find src/* -type d -exec cp ~/Dropbox/classes/cs/261/template.cpp \{\}/main.cpp \;
clean:
rm $(TARGETS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment