Reduce differences with root_skels in contrib.
[dragonfly.git] / contrib / bsdinstaller-1.1.6 / src / lib / lua / gettext / Makefile
blob6ebdb4de365d8d624d5ac7bc6fd218c7ba0b9c52
1 # Makefile for luagettext.
2 # $Id: Makefile,v 1.6 2005/04/05 20:53:46 cpressey Exp $
4 OSTYPE!=sysctl -n kern.ostype
6 COMPAT?=/usr/local/lib/lua/compat-5.1r2
8 OBJS= lua_gettext.o compat-5.1.o
10 WARNS= -W -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
11 -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual \
12 -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts \
13 -Winline -Wnested-externs -Wredundant-decls
15 CFLAGS+=${WARNS}
16 .ifdef DEBUG
17 CFLAGS+= -DDEBUG -g
18 .endif
19 CFLAGS+=-I/usr/local/include -I${COMPAT}
21 .if ${OSTYPE} == "NetBSD"
22 CFLAGS+=-I/usr/pkg/include
23 LDADD+= -L/usr/pkg/lib
24 .endif
26 LDADD+= -L/usr/local/lib/ -lintl -lm -llua50 -llualib50
28 all: lgettext.so
30 in_cvs: all
32 lgettext.so: ${OBJS}
33 ${CC} ${CFLAGS} ${OBJS} -static ${LDADD} -shared -o lgettext.so
35 compat-5.1.o: ${COMPAT}/compat-5.1.c
36 ${CC} ${CFLAGS} -c ${COMPAT}/compat-5.1.c
38 clean:
39 rm -f *.o *.so