]> git.saurik.com Git - apple/boot.git/blob - i386/tests/Makefile
f45209f9812a1229eb7ec4a59e6c3c6f9c0b2a7f
[apple/boot.git] / i386 / tests / Makefile
1 DIR = tests
2 include ../MakePaths.dir
3
4 CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror \
5 -fno-builtin -DSAIO_INTERNAL_USER -static \
6 -fomit-frame-pointer -mpreferred-stack-boundary=2 \
7 -fno-align-functions
8 TESTS= satest
9 LIBSA= $(SYMROOT)/libsa.a
10 LIBSADIR = ../libsa
11 INC = -I. -I.. -I$(SYMROOT) -I$(LIBSADIR)
12
13 OBJROOT=../../obj/i386
14 SYMROOT=../../sym/i386
15 DSTROOT=../../dst/i386
16 SRCROOT=/tmp
17 VPATH=$(SYMROOT):$(OBJROOT)
18
19 DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
20
21 all: $(TESTS)
22
23 satest: satest.o $(LIBSA)
24 cc $(CFLAGS) -o satest $(filter %.o,$^) -L$(SYMROOT) -lsa -L/usr/local/lib/system -lc_static -lgcc_static
25
26 include ../MakeInc.dir