Installer import into contrib (real import this time)
[dragonfly.git] / contrib / bsdinstaller-1.1.6 / src / lib / lua / pty / Makefile
1 # $Id: Makefile,v 1.4 2005/04/05 20:53:47 cpressey Exp $
2
3 OSTYPE!=sysctl -n kern.ostype
4
5 CC?=    cc
6 WARNS=  -W -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
7         -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual \
8         -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts \
9         -Winline -Wnested-externs -Wredundant-decls
10 LOCALBASE?=/usr/local
11
12 CFLAGS+=${WARNS}
13 .ifdef DEBUG
14 CFLAGS+= -DDEBUG -g 
15 .endif
16 CFLAGS+=-I/usr/local/include
17
18 .if ${OSTYPE} == "NetBSD"
19 CFLAGS+=-I/usr/pkg/include
20 LDADD+= -L/usr/pkg/lib
21 .endif
22
23 LDADD+= -L/usr/local/lib/ -lutil -lm -llua50 -llualib50
24
25 all: lpty.so
26
27 in_cvs: all
28
29 lpty.so: pty.o
30         ${CC} ${CFLAGS} pty.o -static ${LDADD} -shared -o lpty.so
31
32 pty.o: pty.c
33         ${CC} ${CFLAGS} -c pty.c -o pty.o
34
35 clean:
36         rm -rf *.so *.o