NetBSD/lib/libcurses/EXAMPLES/Makefile

55 lines
1.4 KiB
Makefile

#$Id: Makefile,v 1.2 2007/05/28 15:01:58 blymn Exp $
#$Log: Makefile,v $
#Revision 1.2 2007/05/28 15:01:58 blymn
#Merge in wide curses code done as a Summer of Code project by
#Ruibiao Qiu.
#
#Revision 1.1.2.2 2007/01/31 10:08:47 blymn
#Fix up build errors.
#
#Revision 1.1.2.1 2007/01/21 12:05:54 blymn
#Merge wide curses.
#
#Revision 1.1 2007/01/21 11:38:59 blymn
#Wide curses merge
#
#Revision 1.1 2005/08/31 14:52:08 ruibiao
#
#A patach for the current source
#
#Revision 1.2 2005/08/23 21:29:08 ruibiao
#
#Changed to the right libraries
#
#Revision 1.1 2005/08/23 16:38:22 ruibiao
#
#Initial version, to build all versions of file views and the unit tester
#
RM = /bin/rm -f
CFLAGS =
.if defined(DEBUG)
CFLAGS+= -g
.endif
all: wcview nwview ccview tcview ncview ex1
wcview: view.c
gcc -DHAVE_WCHAR -o wcview view.c -I.. $(CFLAGS) -lcurses -Wl,-rpath,.. -L..
nwview: view.c
gcc -DHAVE_WCHAR -o nwview view.c -DNCURSES -I/usr/pkg/include $(CFLAGS) -lcurses -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib
ccview: view.c
gcc -o ccview view.c -I.. $(CFLAGS) -lcurses -Wl,-rpath,.. -L..
tcview: view.c
gcc -o tcview view.c -L/usr/lib -Wl,-rpath,/usr/lib $(CFLAGS) -lcurses
ncview: view.c
gcc -o ncview view.c -I/usr/pkg/include -DNCURSES -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib $(CFLAGS) -lncurses
ex1: ex1.c
gcc -DHAVE_WCHAR -o ex1 ex1.c -I.. $(CFLAGS) -lcurses -Wl,-rpath,.. -L..