1 # Makefile for luadfui.
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
9 OBJS
= common.o dfui.o progress.o compat-5.1.o
11 WARNS
= -W
-Werror
-Wall
-Wstrict-prototypes
-Wmissing-prototypes \
12 -Wpointer-arith
-Wno-uninitialized
-Wreturn-type
-Wcast-qual \
13 -Wwrite-strings
-Wswitch
-Wshadow
-Wcast-align
-Wchar-subscripts \
14 -Winline
-Wnested-externs
-Wredundant-decls
20 CFLAGS
+=-I
/usr
/local
/include -I
${COMPAT}
22 .if
${OSTYPE} == "NetBSD"
23 CFLAGS
+=-I
/usr
/pkg
/include
24 LDADD
+= -L
/usr
/pkg
/lib
27 LDADD
+= -L
/usr
/local
/lib
/ -ldfui
-laura
-lm
-llua50
-llualib50
31 # XXX build and link to dependencies here
35 ${CC} ${CFLAGS} ${OBJS} -static
${LDADD} -shared
-o
${LIB}
37 compat-5.1.o
: ${COMPAT}/compat-5.1.c
38 ${CC} ${CFLAGS} -c
${COMPAT}/compat-5.1.c