mirror of
https://github.com/holub/mame
synced 2025-06-07 13:23:50 +03:00
added additional flags for compiling on linux and osx, but enabled just posix, so it should cover most of distributions and variations (nw)
This commit is contained in:
parent
47a7cb2fcc
commit
cca73a4ec0
@ -468,6 +468,15 @@ LUAOBJS = \
|
|||||||
|
|
||||||
$(OBJ)/liblua.a: $(LUAOBJS)
|
$(OBJ)/liblua.a: $(LUAOBJS)
|
||||||
|
|
||||||
|
LUA_FLAGS =
|
||||||
|
ifeq ($(TARGETOS),linux)
|
||||||
|
LUA_FLAGS += -DLUA_USE_POSIX
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGETOS),macosx)
|
||||||
|
LUA_FLAGS += -DLUA_USE_POSIX
|
||||||
|
endif
|
||||||
|
|
||||||
$(LIBOBJ)/lua/%.o: $(LIBSRC)/lua/%.c | $(OSPREBUILD)
|
$(LIBOBJ)/lua/%.o: $(LIBSRC)/lua/%.c | $(OSPREBUILD)
|
||||||
@echo Compiling $<...
|
@echo Compiling $<...
|
||||||
$(CC) $(CDEFS) $(CCOMFLAGS) $(CONLYFLAGS) -DLUA_COMPAT_ALL -c $< -o $@
|
$(CC) $(CDEFS) $(CCOMFLAGS) $(CONLYFLAGS) -DLUA_COMPAT_ALL $(LUA_FLAGS) -c $< -o $@
|
||||||
|
Loading…
Reference in New Issue
Block a user