PROGS = no_op sigusr_trap spin orte_nodename orte_spawn orte_loop_spawn orte_loop_child orte_abort get_limits \
        orte_tool orte_no_op binom oob_stress iof_stress iof_delay radix opal_interface orte_spin segfault \
        orte_exit test-time event-threads psm_keygen regex orte_errors evpri-test opal-evpri-test evpri-test2 \
        mapper reducer opal_hotel orte_dfs ulfm pmixtool threads

all: $(PROGS)

CC = ortecc
CFLAGS = -g
CXX = ortec++
CXXFLAGS = -g
FFLAGS = -g

clean:
	rm -f $(PROGS) *~

oob_stress:
	ortecc -o oob_stress oob_stress.c -lm

pmixtool:
	ortecc -o pmixtool pmixtool.c -lpmix

threads:
	ortecc -O0 -g -lpthread -lhwloc threads.c -o threads
