Skip to content

Instantly share code, notes, and snippets.

@goyalankit
Last active August 29, 2015 14:06
Show Gist options
  • Save goyalankit/95ceaa92368f8e16954d to your computer and use it in GitHub Desktop.
Save goyalankit/95ceaa92368f8e16954d to your computer and use it in GitHub Desktop.
all: clean sph_out multi # deletes all object and executables before creating new ones! Remove clean for final submission.
multi: mph_out
multi_process_hash.o:
g++ -c multi_process_hash.cpp #-DDEBUG #-DSCHED_INFO #-DDEBUG # remove -DDEBUG to disable debug information
backgroundTask.o:
g++ -c backgroundTask.c
mph_out: city.o multi_process_hash.o backgroundTask.o
g++ city.o backgroundTask.o multi_process_hash.o -o mph_out
### Compile single process hash calculation files.
single: sph_out
sph_out: city.o single_process_hash.o
g++ city.o single_process_hash.o -o sph_out
city.o:
g++ -c city.cc
single_process_hash.o:
g++ -c single_process_hash.cc
clean:
rm -rf city.o single_process_hash.o multi_process_hash.o sph_out mph_out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment