forked from nexo-developers/nexo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
87 lines (67 loc) · 2.09 KB
/
Makefile
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
FC11=fc11
CACHE=cache
THISDIR=xobundle
CFLAG= -I`pwd`/fc11/usr/include
LDFLAG= -L`pwd`/fc11
# -L`pwd`/fc11/usr/lib
all: help
help:
@echo " Objetivos utiles"
@echo "=================="
@echo
@echo "make chroot: Genera un chroot de fc11 que permite compilar"
@echo " el Artoolkit, la lib pui y los ejemplos "
@echo
@echo "make all_cross: trata de compilar Artoolkit y PUI contra "
@echo " los .h y .so de fc11 sin utilizar chroot "
@echo
@echo "make DIR=DIRECTORIO cross: compila el makefile del direc- "
@echo " torio DIRECTORIO pasandole las variables CFLAG_CROSS "
@echo " y la variable LDFLAG_CROSS"
@echo
all_cross:
$(MAKE) -C $(FC11) cross
$(MAKE) DIR="../ARToolkit/lib/SRC" OBJ=all cross
$(MAKE) DIR="../Biblioteca\ PUI" OBJ=all cross
$(MAKE) DIR="../Biblioteca\ PUI/samples/c++" OBJ=all cross
cross:
$(MAKE) -C $(FC11) cross
$(MAKE) CFLAG_CROSS="$(CFLAG)" LDFLAG_CROSS="$(LDFLAG)" -C $(DIR) $(OBJ)
chroot: symlinks
# BASIC CHROOT
$(MAKE) -C $(FC11) BASH_
$(MAKE) -C $(FC11) COREUTILS
$(MAKE) -C $(FC11) NANO
# NEEDED BY ARTOOLKIT
$(MAKE) -C $(FC11) KERNEL_HEADERS
$(MAKE) -C $(FC11) GCC
$(MAKE) -C $(FC11) MAKE_
$(MAKE) -C $(FC11) FREEGLUT_DEVEL
$(MAKE) -C $(FC11) GLIB2_DEVEL
$(MAKE) -C $(FC11) GSTREAMER010_DEVEL
$(MAKE) -C $(FC11) LIBXML2_DEVEL
# NEEDED BY PUI
$(MAKE) -C $(FC11) GCC_CPP
# NEEDED BY EXAMPLES
$(MAKE) -C $(FC11) SDL_DEVEL
$(MAKE) -C $(FC11) SDLGFX_DEVEL
$(MAKE) -C $(FC11) SDLMIXER_DEVEL
(cd .. ; sudo chroot .)
clean_rpm:
$(MAKE) -C $(CACHE) clean
clean_rootfs:
$(MAKE) -C $(FC11) clean
clean:
$(MAKE) -C ../Biblioteca\ PUI clean
$(MAKE) -C ../ARToolkit/lib/SRC clean
$(MAKE) -C ../Biblioteca\ PUI/samples/c++ clean
symlinks:
ln -fs $(THISDIR)/$(FC11)/usr ../usr
ln -fs $(THISDIR)/$(FC11)/bin ../bin
ln -fs $(THISDIR)/$(FC11)/sbin ../sbin
ln -fs $(THISDIR)/$(FC11)/lib ../lib
ln -fs $(THISDIR)/$(FC11)/share ../share
ln -fs $(THISDIR)/$(FC11)/etc ../etc
ln -fs $(THISDIR)/$(FC11)/var ../var
#to execute even if exist the file
.PHONY: all clean cross all-cross symlinks help