2 # $Id: makefile,v 1.2 2001/08/10 17:12:22 ant Exp $
3 # Copyright (c) 1997 by Matthew Jacob
5 # This software is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Library General Public
7 # License as published by the Free Software Foundation; version 2.
9 # This software is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Library General Public License for more details.
14 # You should have received a copy of the GNU Library General Public
15 # License along with this software; if not, write to the Free
16 # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 # The author may be reached via electronic communications at
22 # or, via United States Postal Address
26 # San Francisco, CA, 94131
28 #CC = cc -qextchk -qlanglvl=ansi -qproto -qmaxmem=3000
32 KCFLAGS = $(DEBUG_FLAG) -O
33 CFLAGS = $(DEBUG_FLAG) -O
35 LDF1 = -bI:/lib/kernex.exp -bI:/usr/lib/lowsys.exp
38 BINS = gscdd defgsc cfggsc ucfggsc tstinq
45 ${LD} -bl:$@.map -o $@ $@.o -e gsc_config ${LDF1} ${LDF2}
47 gscdd.o: gscdd.c gscdds.h
48 $(CC) $(KCFLAGS) -c gscdd.c -DKERNEL -D_KERNEL -D_IBMR2
51 $(CC) $(CFLAGS) -o $@ -lodm -lcfg $@.c
54 $(CC) $(CFLAGS) -o $@ -lodm -lcfg $@.c
57 $(CC) $(CFLAGS) -o $@ -lodm -lcfg $@.c
60 $(CC) $(CFLAGS) -o $@ $@.c
63 ${RM} /tmp/catalog_tmp
64 echo '$$set 1 Feral Software Generic SCSI Messages' > /tmp/catalog_tmp
65 echo "1 Feral Software Generic SCSI Release 1.0" >> /tmp/catalog_tmp
66 gencat $@ /tmp/catalog_tmp
67 ${RM} /tmp/catalog_tmp
70 @${RM} ${BINS} ${DATA} *.map *.o