-
Notifications
You must be signed in to change notification settings - Fork 48
/
Makefile
executable file
·65 lines (53 loc) · 1.46 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
##########################################################
# Copyright 2016-2080 evilbinary.
#作者:evilbinary on 01/01/17.
##########################################################
TARGET =bin/scheme
EXT=.so
UNAME_S := $(shell uname -s)
OS_NAME :=$(shell echo $(UNAME_S)| tr '[A-Z]' '[a-z]')
ifeq ($(findstring mingw32_nt,$(OS_NAME)),mingw32_nt)
EXT=.dll
endif
ifeq ($(findstring mingw64_nt,$(OS_NAME)),mingw64_nt)
EXT=.dll
endif
SOFILES= lib/libscm/libscm$(EXT) \
lib/libcffi/libcffi$(EXT) \
lib/libgl/libgles$(EXT) \
lib/libc/libcc$(EXT) \
lib/libgui/libgui$(EXT) \
lib/libglfw/libglfw$(EXT) \
lib/libvideo/libvideo$(EXT) \
lib/libalut/libalut$(EXT) \
lib/libsocket/libsocket$(EXT) \
lib/libglut/libglut$(EXT) \
lib/scheme/scheme \
lib/boot/scheme.boot \
lib/boot/petite.boot \
lib/libimgui/libimgui$(EXT) \
lib/libnanovg/libnanovg$(EXT) \
BINFILES=bin/libscm$(EXT) \
bin/libcffi$(EXT) \
bin/libgui$(EXT) \
bin/libglfw$(EXT) \
bin/libgles$(EXT) \
bin/libc/libc$(EXT) \
bin/libglut$(EXT) \
bin/libnanovg$(EXT) \
bin/libvideo$(EXT) \
bin/libsocket$(EXT) \
bin/libalut$(EXT) \
bin/libimgui$(EXT) \
all: $(TARGET)
@echo "All build finish ^_^ have fun!"
$(TARGET): $(SOFILES)
@for n in $^; do cp -rf $$n bin ; done
$(SOFILES):
$(MAKE) -C lib
clean:
$(MAKE) -C lib clean
rm -rf bin/*.boot bin/scheme bin/*.so $(BINFILES)
android:
$(MAKE) -C lib android