File: Makefile.win

package info (click to toggle)
lua-filesystem 1.7.0-2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 328 kB
  • sloc: ansic: 744; makefile: 17
file content (25 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $Id: Makefile.win,v 1.11 2008/05/07 19:06:37 carregal Exp $

T= lfs

include config.win

SRCS= src\$T.c
OBJS= src\$T.obj

lib: src\lfs.dll

.c.obj:
	$(CC) /c /Fo$@ $(CFLAGS) $<

src\lfs.dll: $(OBJS)
	link /dll /def:src\$T.def /out:src\lfs.dll $(OBJS) "$(LUA_LIB)"
	IF EXIST src\lfs.dll.manifest mt -manifest src\lfs.dll.manifest -outputresource:src\lfs.dll;2

install: src\lfs.dll
	IF NOT EXIST "$(LUA_LIBDIR)" mkdir "$(LUA_LIBDIR)"
	copy src\lfs.dll "$(LUA_LIBDIR)"

clean:
	del src\lfs.dll $(OBJS) src\$T.lib src\$T.exp
	IF EXIST src\lfs.dll.manifest del src\lfs.dll.manifest