16 CPPFLAGS
= $(EXTRA_CPPFLAGS
) -DSLJIT_CONFIG_AUTO
=1 -Isljit_src
18 REGEX_CFLAGS
= -fshort-wchar
19 LDFLAGS
= $(EXTRA_LDFLAGS
)
21 TARGET
= sljit_test regex_test
28 SLJIT_HEADERS
= $(SRCDIR
)/sljitLir.h
$(SRCDIR
)/sljitConfig.h
$(SRCDIR
)/sljitConfigInternal.h
30 SLJIT_LIR_FILES
= $(SRCDIR
)/sljitLir.c
$(SRCDIR
)/sljitExecAllocator.c
$(SRCDIR
)/sljitUtils.c \
31 $(SRCDIR
)/sljitNativeARM_32.c
$(SRCDIR
)/sljitNativeARM_T2_32.c
$(SRCDIR
)/sljitNativeARM_64.c \
32 $(SRCDIR
)/sljitNativeMIPS_common.c
$(SRCDIR
)/sljitNativeMIPS_32.c
$(SRCDIR
)/sljitNativeMIPS_64.c \
33 $(SRCDIR
)/sljitNativePPC_common.c
$(SRCDIR
)/sljitNativePPC_32.c
$(SRCDIR
)/sljitNativePPC_64.c \
34 $(SRCDIR
)/sljitNativeSPARC_common.c
$(SRCDIR
)/sljitNativeSPARC_32.c \
35 $(SRCDIR
)/sljitNativeTILEGX_64.c \
36 $(SRCDIR
)/sljitNativeX86_common.c
$(SRCDIR
)/sljitNativeX86_32.c
$(SRCDIR
)/sljitNativeX86_64.c
38 all: $(BINDIR
) $(TARGET
)
43 $(BINDIR
)/sljitLir.o
: $(BINDIR
) $(SLJIT_LIR_FILES
) $(SLJIT_HEADERS
)
44 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$(SRCDIR
)/sljitLir.c
46 $(BINDIR
)/sljitMain.o
: $(TESTDIR
)/sljitMain.c
$(BINDIR
) $(SLJIT_HEADERS
)
47 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$(TESTDIR
)/sljitMain.c
49 $(BINDIR
)/sljitTest.o
: $(TESTDIR
)/sljitTest.c
$(BINDIR
) $(SLJIT_HEADERS
)
50 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
-o
$@
$(TESTDIR
)/sljitTest.c
52 $(BINDIR
)/regexMain.o
: $(REGEXDIR
)/regexMain.c
$(BINDIR
) $(SLJIT_HEADERS
)
53 $(CC
) $(CPPFLAGS
) $(CFLAGS
) $(REGEX_CFLAGS
) -c
-o
$@
$(REGEXDIR
)/regexMain.c
55 $(BINDIR
)/regexJIT.o
: $(REGEXDIR
)/regexJIT.c
$(BINDIR
) $(SLJIT_HEADERS
) $(REGEXDIR
)/regexJIT.h
56 $(CC
) $(CPPFLAGS
) $(CFLAGS
) $(REGEX_CFLAGS
) -c
-o
$@
$(REGEXDIR
)/regexJIT.c
59 rm -f
$(BINDIR
)/*.o
$(BINDIR
)/sljit_test
$(BINDIR
)/regex_test
61 sljit_test
: $(BINDIR
)/sljitMain.o
$(BINDIR
)/sljitTest.o
$(BINDIR
)/sljitLir.o
62 $(CC
) $(CFLAGS
) $(LDFLAGS
) $(BINDIR
)/sljitMain.o
$(BINDIR
)/sljitTest.o
$(BINDIR
)/sljitLir.o
-o
$(BINDIR
)/$@
-lm
-lpthread
64 regex_test
: $(BINDIR
)/regexMain.o
$(BINDIR
)/regexJIT.o
$(BINDIR
)/sljitLir.o
65 $(CC
) $(CFLAGS
) $(LDFLAGS
) $(BINDIR
)/regexMain.o
$(BINDIR
)/regexJIT.o
$(BINDIR
)/sljitLir.o
-o
$(BINDIR
)/$@
-lm
-lpthread