diff options
author | James Snyder <jbsnyder@fanplastic.org> | 2010-03-03 18:19:20 -0600 |
---|---|---|
committer | James Snyder <jbsnyder@fanplastic.org> | 2010-03-03 18:19:20 -0600 |
commit | d1c516f4beb47e79fb886e46a4b6e0cf432d850a (patch) | |
tree | 4abd6e6008787e9b63d02cf03d7960cd0c017d96 /Makefile | |
parent | e04e4d53ce0788f9a043c37d7c3710f5b0fc48b9 (diff) | |
download | luaevent-prosody-d1c516f4beb47e79fb886e46a4b6e0cf432d850a.tar.gz luaevent-prosody-d1c516f4beb47e79fb886e46a4b6e0cf432d850a.zip |
Changes to compile on OS X.
- BSD version of install doesn't have -D flag
- stdlib.h should include malloc defs (malloc.h is obsolete)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -23,8 +23,10 @@ all: $(CC) $(LDFLAGS) -o $(LIB) *.o -L$(LUA_LIB_DIR) -l$(LUA_LIB) -levent install: all - $(INSTALL_DATA) -D lua/luaevent.lua $(DESTDIR)$(INSTALL_DIR_LUA)/luaevent.lua - $(INSTALL_PROGRAM) -D $(LIB) $(DESTDIR)$(INSTALL_DIR_BIN)/luaevent/$(LIB) + mkdir -p $(DESTDIR)$(INSTALL_DIR_LUA) + $(INSTALL_DATA) lua/luaevent.lua $(DESTDIR)$(INSTALL_DIR_LUA)/luaevent.lua + mkdir -p $(DESTDIR)$(INSTALL_DIR_BIN)/luaevent/ + $(INSTALL_PROGRAM) $(LIB) $(DESTDIR)$(INSTALL_DIR_BIN)/luaevent/$(LIB) clean: rm *.so |