1#
2# ccsrch (c) 2007 Mike Beekey  - zaphod2718@yahoo.com
3# All rights reserved
4#
5#
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License
8# as published by the Free Software Foundation; either version 2
9# of the License, or (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19#
20#
21# Makefile for ccsrch
22#
23
24#CC	=gcc
25#
26# for mingw use something like the following
27#INCL	= -I./ -I/mingw/include
28#LIBSDIR	=  -L./ -L/mingw/lib -L/mingw/mingw32/lib
29#
30# for *UNIX* the following tends to work
31INCL	= -I./
32#CFLAGS	=-O2 -static
33CFLAGS	=-O2 # for linux
34#CFLAGS	=-DDEBUG # if you want a lot of noise
35LDFLAGS	=-s
36OBJS=  ccsrch.o
37LIBSDIR	=  -L./
38LIBS	=
39PROGS	=ccsrch
40
41all:	${PROGS}
42
43ccsrch:	${OBJS}
44	${CC} ${CFLAGS} ${INCL} ${LDFLAGS} ${OBJS} ${LIBSDIR} ${LIBS} -o ccsrch
45
46clean:
47	rm -f core *.core ${PROGS} ${OBJS} ccsrch.exe
48
49.c.o:
50	${CC} ${CFLAGS} ${INCL} -c $<
51
52install:
53	cp ccsrch /usr/local/bin/
54	chmod 4755 /usr/local/bin/ccsrch
55
56