-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
57 lines (43 loc) · 1.11 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
LIB = lsleep
LUA = lua
LUAV = 5.2
SRC=./src
DOC = ./doc
LOCAL=$(MEDIA_CIRCUS_PREFIX)
INCLUDE= $(LOCAL)/include
CC = gcc -c
LN = gcc -O
ARCHBITS64 = -m64
DEBUG = -g
INSTALL_TOP= $(MEDIA_CIRCUS_PREFIX)
INSTALL_BIN= $(INSTALL_TOP)/bin
INSTALL_INC= $(INSTALL_TOP)/include
INSTALL_LIB= $(INSTALL_TOP)/lib
INSTALL_MAN= $(INSTALL_TOP)/docs/$(LUA)/$(LIB)
INSTALL_LMOD= $(INSTALL_LIB)/$(LUA)/$(LUAV)
INSTALL_CMOD= $(INSTALL_LIB)/$(LUA)/$(LUAV)
# What to install.
TO_BIN=
TO_INC=
TO_LIB= $(LIB).so
TO_MAN=
# How to install. If your install program does not support "-p", then
# you may have to run ranlib on the installed liblua.a.
INSTALL_DATA= cp
#
# If you don't have "install" you can use "cp" instead.
# INSTALL= cp -p
# INSTALL_EXEC= $(INSTALL)
# INSTALL_DATA= $(INSTALL)
MKDIR= mkdir -p
RM= rm -f
all: $(LIB)
$(LIB):
cd $(SRC) && $(MAKE) $@
install: dummy
cd $(SRC) && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
cd $(SRC) && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_CMOD)
uninstall:
$(RM) $(INSTALL_CMOD)/$(TO_LIB)
# make may get confused with test/ and install/
dummy: