reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
ARCH = $(shell uname -m)
PROGRAMS = 1lwp_SIGSEGV 2lwp_t2_SIGSEGV 2lwp_process_SIGSEGV
EXECS = $(patsubst %,%.$(ARCH),$(PROGRAMS))
CORES = $(patsubst %,%.core,$(EXECS))

all: $(CORES) $(EXECS)
clean:
	rm -f $(CORES) $(EXECS)

%.core: %
	sysctl -w proc.$$$$.corename=$@; ulimit -s 16; ! ./$<
%.$(ARCH): %.c
	$(CC) -o $@ -g $<

.PHONY: all clean