-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add hazytrip.c and the makefile, completing the project
- Loading branch information
1 parent
212c7da
commit 1dc3038
Showing
2 changed files
with
462 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# makefile for hazytrip | ||
# see hazytrip or README.txt for author and contact info | ||
# | ||
|
||
CC=gcc | ||
CFLAGS=-O3 -ansi -march=native | ||
LDFLAGS=-lcrypto -fopenmp | ||
INSTALLDIR=/usr/bin | ||
OUTPUT=hazytrip | ||
INPUT=$(wildcard *.c) | ||
|
||
#OS X compatibility | ||
OS_STR=$(shell uname -s) | ||
ifeq ($(OS_STR), Darwin) | ||
CC=clang-omp | ||
LDFLAGS=-lcrypto -lssl -fopenmp -L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include | ||
endif | ||
|
||
.PHONY: all install uninstall remove clean profile | ||
|
||
all: $(INPUT) | ||
$(CC) $(CFLAGS) -o $(OUTPUT) $(INPUT) $(LDFLAGS) | ||
|
||
install: all | ||
mv $(OUTPUT) $(INSTALLDIR) | ||
|
||
uninstall: | ||
rm -rf $(INSTALLDIR)/$(OUTPUT) | ||
|
||
remove: uninstall | ||
|
||
clean: | ||
rm -rf $(OUTPUT) $(wildcard *.out) | ||
|
||
profile: clean | ||
$(CC) -pg $(INPUT) $(LDFLAGS) | ||
|
Oops, something went wrong.