diff options
Diffstat (limited to 'tolua')
-rw-r--r-- | tolua/GNUmakefile (renamed from tolua/Makefile) | 0 | ||||
-rw-r--r-- | tolua/Makefile.W32 | 17 | ||||
-rw-r--r-- | tolua/lib/README | 1 | ||||
-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 |
6 files changed, 57 insertions, 0 deletions
diff --git a/tolua/Makefile b/tolua/GNUmakefile index 40533f0..40533f0 100644 --- a/tolua/Makefile +++ b/tolua/GNUmakefile diff --git a/tolua/Makefile.W32 b/tolua/Makefile.W32 new file mode 100644 index 0000000..ac903e0 --- /dev/null +++ b/tolua/Makefile.W32 @@ -0,0 +1,17 @@ +# makefile for tolua hierarchy + +tolua: + cd src\lib; nmake all + cd src\bin; nmake all + +tests: + cd src\tests; nmake all + +all clean klean: + cd src\lib; nmake $@ + cd src\bin; nmake $@ + cd src\tests; nmake $@ + +debug: + cd src/bin; make debug + diff --git a/tolua/lib/README b/tolua/lib/README new file mode 100644 index 0000000..a60141c --- /dev/null +++ b/tolua/lib/README @@ -0,0 +1 @@ +"" 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 + |