-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile.in
57 lines (45 loc) · 1.05 KB
/
Makefile.in
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
PACKAGES = assimp
ifneq (@MXE_CROSS@,yes)
PACKAGES += sdl2 sdl2_image
endif
TOP = $(shell pwd)
USR = $(TOP)/usr
CC := @CC@
CXX := @CXX@
AR := @AR@
SED := @SED@
RANLIB := @RANLIB@
INSTALL := @INSTALL@
CMAKE_ARGS := -DCMAKE_INSTALL_PREFIX=$(USR) -DBUILD_SHARED_LIBS=OFF
ifeq (@MXE_CROSS@,yes)
CMAKE_ARGS += -DCMAKE_TOOLCHAIN_FILE=@MXE_CMAKE_TOOLCHAIN_FILE@
endif
all: $(PACKAGES)
clean: $(patsubst %,clean-%,$(PACKAGES))
rm -rf $(USR)
assimp:
cd source/assimp && \
cmake -DASSIMP_BUILD_SAMPLES=OFF -DASSIMP_BUILD_TESTS=OFF -DASSIMP_BUILD_ASSIMP_TOOLS=OFF $(CMAKE_ARGS) . && \
$(MAKE) && \
$(MAKE) install
sdl2:
cd source/sdl2 && \
./autogen.sh && \
./configure --prefix=$(USR) --enable-static --disable-shared && \
$(MAKE) && \
$(MAKE) install
sdl2_image:
cd source/sdl2_image && \
./autogen.sh && \
./configure --prefix=$(USR) --enable-static --disable-shared && \
$(MAKE) && \
$(MAKE) install
clean-assimp:
cd source/assimp && \
$(MAKE) clean
clean-sdl2:
cd source/sdl2 && \
$(MAKE) clean
clean-sdl2_image:
cd source/sdl2_image && \
$(MAKE) clean