1EXE := find-bundle-with-dots-in-fn 2 3all: clean $(EXE) 4 5include Makefile.rules 6 7$(EXE): 8 $(CC) $(CFLAGS) -dynamiclib -o com.apple.sbd $(SRCDIR)/bundle.c 9 mkdir com.apple.sbd.xpc 10 mv com.apple.sbd com.apple.sbd.xpc/ 11 mkdir -p com.apple.sbd.xpc.dSYM/Contents/Resources/DWARF 12 mv com.apple.sbd.dSYM/Contents/Resources/DWARF/com.apple.sbd com.apple.sbd.xpc.dSYM/Contents/Resources/DWARF/ 13 rm -rf com.apple.sbd.dSYM 14 mkdir hide.app 15 tar cf - com.apple.sbd.xpc com.apple.sbd.xpc.dSYM | ( cd hide.app;tar xBpf -) 16 $(CC) $(CFLAGS) -o find-bundle-with-dots-in-fn $(SRCDIR)/main.c 17 18clean:: 19 rm -rf a.out a.out.dSYM hide.app com.apple.sbd com.apple.sbd.dSYM com.apple.sbd.xpc com.apple.sbd.xpc.dSYM find-bundle-with-dots-in-fn find-bundle-with-dots-in-fn.dSYM 20