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 \
13 -mno-sse2 -mfpmath=387
15 INC = -I. -I$(SYMROOT) -I$(UTILDIR)
16 ifneq "" "$(wildcard /bin/mkdirs)"
19 MKDIRS = /bin/mkdir -p
26 VPATH = $(OBJROOT):$(SYMROOT)
28 SA_OBJS = prf.o printf.o zalloc.o \
29 string.o strtol.o error.o \
33 CFILES = prf.c printf.c zalloc.c \
34 string.c strtol.c error.c \
37 EXPORTED_HFILES = libsa.h memory.h
38 INSTALLED_SA_HFILES = libsa.h
40 ALLSRC = $(SFILES) $(CFILES) $(HFILES) $(OTHERFILES)
42 DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
44 all: $(DIRS_NEEDED) $(LIBS)
47 rm -f $(SYMROOT)/$(@F)
48 ar q $(SYMROOT)/$(@F) $^
49 ranlib $(SYMROOT)/$(@F)
52 rm -rf $(SYMROOT)/libsa.a $(SYMROOT)/libsaio.a
54 $(INSTALL_SA_DIR) $(INSTALL_MD_DIR):
57 installhdrs:: $(INSTALL_SA_DIR) $(INSTALL_MD_DIR)
58 cp $(INSTALLED_SA_HFILES) $(INSTALL_SA_DIR)
60 include ../MakeInc.dir
63 -include $(OBJROOT)/Makedep