# Makefile for Darwin / MacOS X all: dl f1.bundle f2.bundle dl: dl.c gcc -g -D__DARWIN__ -o dl dl.c #SHD=-fshared-data SHD= # f2 has references to symbols defined in "dl" f2.bundle: f2.c gcc -bundle_loader dl $(SHD) -bundle $? -o $@ f1.bundle: f1.c gcc $(SHD) -bundle $? -o $@ clean: rm -f *.o f1.bundle f2.bundle dl core so_locations ktrace.out