1 $(eval $(call import.MODULE.defs,TEST,test,LIBHB))
2 $(eval $(call import.GCC,TEST))
4 TEST.src/ = $(SRC/)test/
5 TEST.build/ = $(BUILD/)test/
7 TEST.c = $(wildcard $(TEST.src/)*.c)
8 TEST.c.o = $(patsubst $(SRC/)%.c,$(BUILD/)%.o,$(TEST.c))
10 TEST.exe = $(BUILD/)$(call TARGET.exe,$(HB.name)CLI)
12 TEST.libs = $(LIBHB.a) $(foreach n, \
13 a52 avcodec avformat avutil dca dvdnav dvdread faac faad mkv mpeg2 mp3lame mp4v2 \
14 ogg samplerate swscale theora vorbis vorbisenc x264, \
15 $(CONTRIB.build/)lib/lib$(n).a )
17 TEST.install.exe = $(PREFIX/)bin/$(notdir $(TEST.exe))
19 ifeq (1,$(BZIP2.enabled))
20 TEST.libs += $(CONTRIB.build/)lib/libbz2.a
22 ifeq (1,$(ZLIB.enabled))
23 TEST.libs += $(CONTRIB.build/)lib/libz.a
26 ###############################################################################
28 TEST.out += $(TEST.c.o)
29 TEST.out += $(TEST.exe)
31 BUILD.out += $(TEST.out)
32 BUILD.out += $(TEST.install.exe)
34 ###############################################################################
36 TEST.GCC.I += $(LIBHB.GCC.I)
38 ifeq ($(BUILD.system),darwin)
39 TEST.GCC.f += IOKit CoreServices AudioToolbox
41 else ifeq ($(BUILD.system),linux)
42 TEST.GCC.l += bz2 z pthread dl m
43 else ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
44 TEST.libs += $(CONTRIB.build/)lib/libpthreadGC2.a
45 TEST.GCC.D += PTW32_STATIC_LIB
46 TEST.GCC.l += iberty ws2_32