# .POSIX: LDFLAGS=-lpthread PROGRAMS=example0 example1 example1a null_fork sharing_memory sharing_files\ sharing_memory_safe sharing_memory_deadlock sharing_memory_ordered\ init_bad init_weak init_good basic perthread basic_nojoin CFLAGS=-Wall -pedantic -ansi -g CC=gcc all: $(PROGRAMS) clean: rm -f $(PROGRAMS) *.o *# *~ # This is an example of using the built-in default suffix rule: # .c: # $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<