blob: 234cb1dcfe8f3e16cfce7be9cf83ab21498c2dbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
$(eval $(call import.MODULE.defs,TEST,test,LIBHB))
$(eval $(call import.GCC,TEST))
TEST.src/ = $(SRC/)test/
TEST.build/ = $(BUILD/)test/
TEST.c = $(wildcard $(TEST.src/)*.c)
TEST.c.o = $(patsubst $(SRC/)%.c,$(BUILD/)%.o,$(TEST.c))
TEST.exe = $(BUILD/)$(call TARGET.exe,$(HB.name)CLI)
TEST.libs = $(LIBHB.a) $(foreach n, \
a52 avcodec avformat avutil dca dvdread faac faad mkv mpeg2 mp3lame mp4v2 \
ogg samplerate swscale theora vorbis vorbisenc x264 xvidcore, \
$(CONTRIB.build/)lib/lib$(n).a )
TEST.install.exe = $(PREFIX/)bin/$(notdir $(TEST.exe))
## add libs from optional modules
ifeq (1,$(BZIP2.enabled))
TEST.libs += $(CONTRIB.build/)lib/libbz2.a
endif
ifeq (1,$(ZLIB.enabled))
TEST.libs += $(CONTRIB.build/)lib/libz.a
endif
###############################################################################
TEST.out += $(TEST.c.o)
TEST.out += $(TEST.exe)
BUILD.out += $(TEST.out)
BUILD.out += $(TEST.install.exe)
###############################################################################
TEST.GCC.I += $(LIBHB.GCC.I)
ifeq ($(BUILD.system),darwin)
TEST.GCC.f += IOKit CoreServices
TEST.GCC.l += bz2 z
else ifeq ($(BUILD.system),linux)
TEST.GCC.l += bz2 z pthread dl m
endif
|