Makefile revision 1.1
1#$Id: Makefile,v 1.1 2007/01/21 11:38:59 blymn Exp $
2#$Log: Makefile,v $
3#Revision 1.1  2007/01/21 11:38:59  blymn
4#Wide curses merge
5#
6#Revision 1.1  2005/08/31 14:52:08  ruibiao
7#
8#A patach for the current source
9#
10#Revision 1.2  2005/08/23 21:29:08  ruibiao
11#
12#Changed to the right libraries
13#
14#Revision 1.1  2005/08/23 16:38:22  ruibiao
15#
16#Initial version, to build all versions of file views and the unit tester
17#
18
19RM = /bin/rm -f
20CFLAGS =
21
22.if defined(DEBUG)
23CFLAGS+= -g
24.endif
25
26all: wcview nwview ccview tcview ncview ex1
27
28wcview: view.c
29	gcc -DHAVE_WCHAR -o wcview view.c -I.. $(CFLAGS) -lwcurses -Wl,-rpath,.. -L..
30
31nwview: view.c
32	gcc -DHAVE_WCHAR -o nwview view.c -DNCURSES -I/usr/pkg/include $(CFLAGS) -lncursesw -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib
33
34ccview: view.c
35	gcc -o ccview view.c -I.. $(CFLAGS) -lcurses -Wl,-rpath,.. -L..
36
37tcview: view.c
38	gcc -o tcview view.c -L/usr/lib -Wl,-rpath,/usr/lib $(CFLAGS) -lcurses
39
40ncview: view.c
41	gcc -o ncview view.c -I/usr/pkg/include -DNCURSES -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib $(CFLAGS) -lncurses
42
43ex1: ex1.c
44