Skip to content
Snippets Groups Projects
Commit bebf93f3 authored by Martin's avatar Martin
Browse files

Arborescence Makefile

parent 2a5f73b0
No related branches found
No related tags found
No related merge requests found
...@@ -6,11 +6,15 @@ INFOFLAGS = -Minfo=accel ...@@ -6,11 +6,15 @@ INFOFLAGS = -Minfo=accel
RM = rm -r -f RM = rm -r -f
G = g++ G = g++
MAKEOPTS= -Wall -Wextra -pedantic -std=gnu++11 -Wno-unused-parameter
BIB=$(G) $(MAKEOPTS) -c $< -o $@.o
OPEN = -fopenmp OPEN = -fopenmp
MAIN = main.cpp MAIN = main.cpp
EXEC = main EXEC = main
CLEAN = $(EXEC) CLEAN = $(EXEC) *.o *.exe
acc: openacc.cpp acc: openacc.cpp
nvc++ -o openacc $(ACCFLAGS) $(OPTFLAGS) $(INFOFLAGS) openacc.cpp -Mneginfo nvc++ -o openacc $(ACCFLAGS) $(OPTFLAGS) $(INFOFLAGS) openacc.cpp -Mneginfo
...@@ -45,8 +49,11 @@ clean: ...@@ -45,8 +49,11 @@ clean:
rexe: rexe:
$(RM) *.exe $(RM) *.exe
gopen: tree: suffixe_tree.cpp
$(G) $(OPEN) $(MAIN) -o $(EXEC) $(BIB)
main: main.cpp suffixe_tree.o
$(G) $(OPEN) $(MAKEOPTS) $< -o $@ suffixe_tree.o -lcrypt
exec: exec:
./$(EXEC) ./$(EXEC)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment