Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
Done
  • Loading branch information
bearycool11 committed Nov 12, 2024
1 parent f99c5fd commit c952a09
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions MAKEFILE
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

0 comments on commit c952a09

Please sign in to comment.