Created
September 18, 2015 00:23
-
-
Save jackrosenthal/fb89e51b2caeccd62e24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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