CFLAGS = -std=c11 -Wall -Wextra -Wpedantic
LDFLAGS =

APPS = clone0 clone1 daemon exec fd fork if pid shm stack threadsafe0 threadsafe1

all: $(APPS)

if threadsafe0 threadsafe1: CFLAGS += -fopenmp
if threadsafe0 threadsafe1: LDFLAGS += -fopenmp

shm: LDLIBS = -lrt

clean:
	$(RM) $(APPS)
