diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2014-10-14 09:49:43 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2014-10-14 09:49:43 +0200 |
commit | b30d86ed803cf626e2cf167e83ca331388bbee68 (patch) | |
tree | 77216a08af8bbd3728f6e0cc24a3266a7a6375e7 /tolua/src | |
parent | 49f7abb97a4225d25cf484c876a51bbe215727a2 (diff) | |
download | crawler-b30d86ed803cf626e2cf167e83ca331388bbee68.tar.gz crawler-b30d86ed803cf626e2cf167e83ca331388bbee68.tar.bz2 |
add NMAKE build system to tolua on Windows
Diffstat (limited to 'tolua/src')
-rw-r--r-- | tolua/src/bin/GNUmakefile (renamed from tolua/src/bin/Makefile) | 0 | ||||
-rw-r--r-- | tolua/src/lib/GNUmakefile (renamed from tolua/src/lib/Makefile) | 0 | ||||
-rw-r--r-- | tolua/src/lib/Makefile.W32 | 39 |
3 files changed, 39 insertions, 0 deletions
diff --git a/tolua/src/bin/Makefile b/tolua/src/bin/GNUmakefile index 93daf77..93daf77 100644 --- a/tolua/src/bin/Makefile +++ b/tolua/src/bin/GNUmakefile diff --git a/tolua/src/lib/Makefile b/tolua/src/lib/GNUmakefile index b2091f3..b2091f3 100644 --- a/tolua/src/lib/Makefile +++ b/tolua/src/lib/GNUmakefile diff --git a/tolua/src/lib/Makefile.W32 b/tolua/src/lib/Makefile.W32 new file mode 100644 index 0000000..9a92b7a --- /dev/null +++ b/tolua/src/lib/Makefile.W32 @@ -0,0 +1,39 @@ +# makefile for tolua library + +LINK= link.exe +CC= cl.exe +INCLUDE_DIRS=/I$(TOLUA)\include /I$(TOLUA)\..\lua\src +COMMON_CFLAGS= /W2 /WX /nologo /O2 /EHsc /c $(INCLUDE_DIRS) + +!IFDEF DEBUG +CFLAGS= /MDd /Zi $(COMMON_CFLAGS) +LDFLAGS = /nologo +!ELSE +CFLAGS= /MD $(COMMON_CFLAGS) +LDFLAGS = /nologo +!ENDIF + +.SUFFIXES: .c .obj + +.c.obj: + $(CC) $(CFLAGS) /Fo$@ $< + +TOLUA=..\.. + +OBJS= \ + tolua_event.obj \ + tolua_is.obj \ + tolua_map.obj \ + tolua_push.obj \ + tolua_to.obj + +T= $(TOLUA)\lib\tolua.lib + +all: $T + +$T: $(OBJS) + $(LINK) /lib $(LDFLAGS) /out:$@ $? + +clean: + @-erase $(T) *.obj 2>NUL + |