Makefile 528 Bytes
Newer Older
Thomas Koopman's avatar
Thomas Koopman committed
1
2
CC     = pmixcc
FLAGS  = -O3 -march=native -mtune=native -Iinclude -ggdb -Wall -Wextra #-fsanitize=address -fsanitize=undefined
Thomas Koopman's avatar
Thomas Koopman committed
3
LFLAGS = -lucp -luct -lucs -lucc #-fsanitize=address -fsanitize=undefined
4
5
6
7
8
9

all: $(patsubst examples/%.c, bin/%, $(wildcard examples/*.c))

bin/shray.o: src/shray.c include/shray.h
	$(CC) $(FLAGS) -c $< -o $@

10
bin/%: examples/%.c bin/shray.o bin/rma_hashmap.o 
11
12
	$(CC) $(FLAGS) $^ -o $@ $(LFLAGS)

13
14
15
bin/rma_hashmap.o: src/rma_hashmap.c src/rma_hashmap.h
	$(CC) $(FLAGS) -c $< -o $@

16
17
clean:
	$(RM) bin/*