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
19 CFLAGS
+=-I
/usr
/local
/include -I
${COMPAT}
21 .if
${OSTYPE} == "NetBSD"
22 CFLAGS
+=-I
/usr
/pkg
/include
23 LDADD
+= -L
/usr
/pkg
/lib
26 LDADD
+= -L
/usr
/local
/lib
/ -lintl
-lm
-llua50
-llualib50
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