You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
.PHONY: check clean distribution
|
|
|
|
OBJECTS=ck_hp_stack nbds_haz_test serial ck_hp_fifo ck_hp_fifo_donner
|
|
|
|
all: $(OBJECTS)
|
|
|
|
check: all
|
|
./serial
|
|
./ck_hp_stack $(CORES) 100 1
|
|
./ck_hp_fifo $(CORES) 1 16384 100
|
|
./nbds_haz_test $(CORES) 15 1
|
|
./ck_hp_fifo_donner $(CORES) 16384
|
|
|
|
ck_hp_stack: ../../../src/ck_hp.c ck_hp_stack.c ../../../include/ck_hp_stack.h
|
|
$(CC) $(CFLAGS) ../../../src/ck_hp.c -o ck_hp_stack ck_hp_stack.c
|
|
|
|
ck_hp_fifo: ../../../src/ck_hp.c ck_hp_fifo.c ../../../include/ck_hp_fifo.h
|
|
$(CC) $(CFLAGS) ../../../src/ck_hp.c -o ck_hp_fifo ck_hp_fifo.c
|
|
|
|
ck_hp_fifo_donner: ../../../src/ck_hp.c ck_hp_fifo_donner.c ../../../include/ck_hp_fifo.h
|
|
$(CC) $(CFLAGS) ../../../src/ck_hp.c -o ck_hp_fifo_donner ck_hp_fifo_donner.c
|
|
|
|
serial: ../../../src/ck_hp.c serial.c ../../../include/ck_hp_stack.h
|
|
$(CC) $(CFLAGS) ../../../src/ck_hp.c -o serial serial.c
|
|
|
|
nbds_haz_test: ../../../src/ck_hp.c nbds_haz_test.c
|
|
$(CC) $(CFLAGS) ../../../src/ck_hp.c -o nbds_haz_test nbds_haz_test.c
|
|
|
|
clean:
|
|
rm -rf *~ *.o *.dSYM *.exe $(OBJECTS)
|
|
|
|
include ../../../build/regressions.build
|
|
CFLAGS+=$(PTHREAD_CFLAGS) -D_GNU_SOURCE
|