-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGNUmakefile
65 lines (52 loc) · 1.8 KB
/
GNUmakefile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
BOOLCONFVARS_OFF= BUNDLED_FREETYPE TRACE
BOOLCONFVARS_ON= BUNDLED_POSER WITH_NLS WITH_SVG
USES= fdofiles gen pkgconfig sub
SUBBUILD= BIN2CSTR EMOJIGEN FREETYPE XTC
BIN2CSTR_TARGET= tools/bin/bin2cstr
BIN2CSTR_SRCDIR= tools/bin2cstr
BIN2CSTR_MAKEARGS= DESTDIR=../bin prefix= bindir= \
HOSTBUILD=1 PORTABLE=1 STATIC=0
BIN2CSTR_MAKEGOAL= install
BIN2CSTR_CLEANGOAL= distclean
EMOJIGEN_TARGET= tools/bin/emojigen
EMOJIGEN_SRCDIR= tools/emojigen
EMOJIGEN_MAKEARGS= DESTDIR=../bin prefix= bindir= HOSTBUILD=1 \
PORTABLE=1 STATIC=0 HAVE_CHAR32_T=$(HAVE_CHAR32_T)
EMOJIGEN_MAKEGOAL= install
EMOJIGEN_CLEANGOAL= distclean
FREETYPE_TARGET= ftbundle/root/lib/libfreetype.a
FREETYPE_SRCDIR= ftbundle
FREETYPE_MAKEARGS= CC=$(CC)
XTC_TARGET= tools/bin/xtc
XTC_SRCDIR= tools/xtc
XTC_MAKEARGS= DESTDIR=../bin prefix= bindir= \
HOSTBUILD=1 PORTABLE=1 STATIC=0
XTC_MAKEGOAL= install
XTC_CLEANGOAL= distclean
DISTCLEANDIRS= tools/bin
NODIST= poser/zimk
define checkfunc
$(shell printf "#include <$1>\nint (*f)(void) = $2;" | \
$(or $(CC),cc) -xc -c -o/dev/null - 2>/dev/null && echo 1)
endef
define checktype
$(shell printf "#include <$1>\nstatic $2 x;" | \
$(or $(CC),cc) -xc -c -o/dev/null - 2>/dev/null && echo 1)
endef
HAVE_KQUEUE= $(call checkfunc,sys/event.h,kqueue)
HAVE_INOTIFY= $(call checkfunc,sys/inotify.h,inotify_init)
BOOLCONFVARS_OFF+= $(if $(HAVE_KQUEUE),,WITH_KQUEUE) \
$(if $(HAVE_INOTIFY),,WITH_INOTIFY)
BOOLCONFVARS_ON+= $(if $(HAVE_KQUEUE),WITH_KQUEUE,) \
$(if $(HAVE_INOTIFY),WITH_INOTIFY,)
HAVE_CHAR32_T= $(call checktype,uchar.h,char32_t)
include zimk/zimk.mk
ifeq ($(BUNDLED_POSER),1)
WITH_TLS:= 0
posercore_BUILDWITH:= #
posercore_STRIPWITH:= #
posercore_INSTALLWITH:= #
posercore_PRECFLAGS:= -I./poser/include
$(call zinc,poser/src/lib/core/core.mk)
endif
$(call zinc,src/bin/xmoji/xmoji.mk)