3 include ../MakePaths.dir
6 INSTALL_SA_DIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
7 INSTALL_MD_DIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/machdep/i386
10 CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror \
11 -fno-builtin -static -fomit-frame-pointer \
12 -mpreferred-stack-boundary=2 -fno-align-functions
14 INC = -I. -I$(SYMROOT) -I$(UTILDIR)
15 ifneq "" "$(wildcard /bin/mkdirs)"
18 MKDIRS = /bin/mkdir -p
25 VPATH = $(OBJROOT):$(SYMROOT)
27 SA_OBJS = prf.o printf.o zalloc.o \
28 string.o strtol.o error.o \
32 CFILES = prf.c printf.c zalloc.c \
33 string.c strtol.c error.c \
36 EXPORTED_HFILES = libsa.h memory.h
37 INSTALLED_SA_HFILES = libsa.h
39 ALLSRC = $(SFILES) $(CFILES) $(HFILES) $(OTHERFILES)
41 DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
43 all: $(DIRS_NEEDED) $(LIBS)
46 rm -f $(SYMROOT)/$(@F)
47 ar q $(SYMROOT)/$(@F) $^
48 ranlib $(SYMROOT)/$(@F)
51 rm -rf $(SYMROOT)/libsa.a $(SYMROOT)/libsaio.a
53 $(INSTALL_SA_DIR) $(INSTALL_MD_DIR):
56 installhdrs:: $(INSTALL_SA_DIR) $(INSTALL_MD_DIR)
57 cp $(INSTALLED_SA_HFILES) $(INSTALL_SA_DIR)
59 include ../MakeInc.dir
62 -include $(OBJROOT)/Makedep