3 INSTALL_PROGRAM
= $(INSTALL
)
4 INSTALL_DATA
= $(INSTALL
) -m
644
7 CFLAGS
= -g
-O0
-c
-Wall
-fpic
11 LUA_INC_DIR
=/usr
/include/lua5.1
14 INSTALL_DIR_LUA
=/usr
/share
/lua
/5.1
15 INSTALL_DIR_BIN
=/usr
/lib
/lua
/5.1
22 $(CC
) $(CFLAGS
) -Iinclude
-I
$(LUA_INC_DIR
) src
/*.c
23 $(CC
) $(LDFLAGS
) -o
$(LIB
) *.o
-L
$(LUA_LIB_DIR
) -l
$(LUA_LIB
) -levent
26 $(INSTALL_DATA
) -D lua
/luaevent.lua
$(DESTDIR
)$(INSTALL_DIR_LUA
)/luaevent.lua
27 $(INSTALL_PROGRAM
) -D
$(LIB
) $(DESTDIR
)$(INSTALL_DIR_BIN
)/luaevent
/$(LIB
)