-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
25 additions
and
21 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 |
---|---|---|
@@ -1,51 +1,55 @@ | ||
CC=gcc | ||
CFLAGS=-Wall -Werror -std=c11 -pedantic -Wextra | ||
LDFLAGS=-lpthread -lcrypto -lssl -lcblas -fopenmp | ||
INCLUDES=-I./include | ||
CC = gcc | ||
CFLAGS = -Wall -Werror -std=c11 -pedantic -Wextra | ||
LDFLAGS = -lpthread -lcrypto -lssl -lcblas -fopenmp | ||
INCLUDES = -I./include | ||
|
||
ARC_AGI_BENCHMARK_CFLAGS=-DARC_AGI_BENCHMARK | ||
ARC_AGI_BENCHMARK_LDFLAGS=-larc_agi_benchmark | ||
ARC_AGI_BENCHMARK_CFLAGS = -DARC_AGI_BENCHMARK | ||
ARC_AGI_BENCHMARK_LDFLAGS = -larc_agi_benchmark | ||
|
||
all: pmll arc_agi_benchmark pmll_np_solver | ||
TARGETS = pmll arc_agi_benchmark pmll_np_solver | ||
|
||
.PHONY: all clean run run_arc_agi_benchmark run_pmll_np_solver | ||
|
||
all: $(TARGETS) | ||
|
||
pmll: unified_voice.o pml_logic_loop.o memory_silo.o io_socket.o main.o | ||
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -o pmll unified_voice.o pml_logic_loop.o memory_silo.o io_socket.o main.o | ||
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -o $@ $^ | ||
|
||
pmll_np_solver: pmll_np_solver.o | ||
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -o pmll_np_solver pmll_np_solver.o | ||
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -o $@ $^ | ||
|
||
arc_agi_benchmark: arc_agi_benchmark.o | ||
$(CC) $(CFLAGS) $(ARC_AGI_BENCHMARK_CFLAGS) $(LDFLAGS) $(ARC_AGI_BENCHMARK_LDFLAGS) $(INCLUDES) -o arc_agi_benchmark arc_agi_benchmark.o | ||
$(CC) $(CFLAGS) $(ARC_AGI_BENCHMARK_CFLAGS) $(LDFLAGS) $(ARC_AGI_BENCHMARK_LDFLAGS) $(INCLUDES) -o $@ $^ | ||
|
||
unified_voice.o: unified_voice.c memory_silo.h io_socket.h | ||
$(CC) $(CFLAGS) $(INCLUDES) -c unified_voice.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c $< | ||
|
||
pml_logic_loop.o: pml_logic_loop.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c pml_logic_loop.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c $< | ||
|
||
memory_silo.o: memory_silo.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c memory_silo.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c $< | ||
|
||
io_socket.o: io_socket.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c io_socket.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c $< | ||
|
||
main.o: main.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c main.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c $< | ||
|
||
arc_agi_benchmark.o: arc_agi_benchmark.c | ||
$(CC) $(CFLAGS) $(ARC_AGI_BENCHMARK_CFLAGS) $(INCLUDES) -c arc_agi_benchmark.c | ||
$(CC) $(CFLAGS) $(ARC_AGI_BENCHMARK_CFLAGS) $(INCLUDES) -c $< | ||
|
||
pmll_np_solver.o: pmll_np_solver.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c pmll_np_solver.c | ||
$(CC) $(CFLAGS) $(INCLUDES) -c $< | ||
|
||
clean: | ||
rm -f *.o pmll arc_agi_benchmark pmll_np_solver | ||
rm -f *.o $(TARGETS) | ||
|
||
run: | ||
run: pmll | ||
./pmll | ||
|
||
run_arc_agi_benchmark: | ||
run_arc_agi_benchmark: arc_agi_benchmark | ||
./arc_agi_benchmark | ||
|
||
run_pmll_np_solver: | ||
run_pmll_np_solver: pmll_np_solver | ||
./pmll_np_solver |