head	1.13;
access;
symbols;
locks
	root:1.13; strict;
comment	@# @;


1.13
date	2001.10.12.13.51.21;	author root;	state Exp;
branches;
next	1.12;

1.12
date	2001.05.07.00.08.12;	author root;	state Exp;
branches;
next	1.11;

1.11
date	2001.01.07.22.36.20;	author root;	state Exp;
branches;
next	1.10;

1.10
date	2001.01.07.22.26.43;	author root;	state Exp;
branches;
next	1.9;

1.9
date	2001.01.07.17.34.54;	author root;	state Exp;
branches;
next	1.8;

1.8
date	2001.01.07.04.49.58;	author root;	state Exp;
branches;
next	1.7;

1.7
date	2001.01.07.03.48.47;	author root;	state Exp;
branches;
next	1.6;

1.6
date	2001.01.05.03.41.34;	author root;	state Exp;
branches;
next	1.5;

1.5
date	2001.01.04.15.51.02;	author root;	state Exp;
branches;
next	1.4;

1.4
date	2001.01.04.13.52.31;	author root;	state Exp;
branches;
next	1.3;

1.3
date	2001.01.04.06.07.21;	author root;	state Exp;
branches;
next	1.2;

1.2
date	2001.01.04.04.40.44;	author root;	state Exp;
branches;
next	1.1;

1.1
date	2001.01.04.04.39.27;	author root;	state Exp;
branches;
next	;


desc
@@


1.13
log
@#
@
text
@#
# Makefile:
#
# Copyright (c) 2001 James McKenzie <james@@fishsoup.dhs.org>,
# All rights reserved.
#
# $Id: Makefile,v 1.11 2001/01/07 22:36:20 root Exp root $
#
# $Log: Makefile,v $
# Revision 1.11  2001/01/07 22:36:20  root
# #
#
# Revision 1.10  2001/01/07 22:26:43  root
# #
#
# Revision 1.9  2001/01/07 17:34:54  root
# #
#
# Revision 1.8  2001/01/07 04:49:58  root
# #
#
# Revision 1.7  2001/01/07 03:48:47  root
# #
#
#
#####################################################################
#
# Makefile:
#
#
######################################################################

include ../make.inc

PROG=nope
OPT=-g

DEFINES=-DHIFI
INCLUDES  = -I../libfiles ${DBINC} 
CFLAGS= $(OPT) $(DEFINES) $(INCLUDES) ${WARN}
LDFLAGS=
LIB=../libfiles/libfiles.a  
LIBS=${LIB} ${DBLIB} 

PSRCS = ieee1284.c util.c yepplib.c  yepp.c
SRCS=${PSRCS} 
HS= project.h yepplib.h

OBJS = $(SRCS:.c=.o) 

all: ${PROG}

${PROG}: $(OBJS) ${LIB} 
	$(CC) ${LDFLAGS} $(CFLAGS) $(OBJS) -o $@@ ${LIBS}

%.o:%.c
	$(CC) $(CFLAGS) $(INCLUDES) -c $<

ieee1284.o:ieee1284.c	
	$(CC) -O2 $(CFLAGS) $(INCLUDES) -c $<

clean:
	/bin/rm -rf *% *~ ${OBJS} core a.out ${PROG}

depend:
	${MAKEDEPEND} -f- -s "# DO NOT DELETE" -- $(INCLUDES) -- $(SRCS) > .depend

nodepend:
	/bin/rm -f .depend

protos:
	echo > prototypes.h
	echo > prototypes.h.tmp
	for i in ${PSRCS}; do ${CPROTO} ${DEFINES} ${INCLUDES} $$i | grep -v ^__ >> prototypes.h.tmp; done
	/bin/mv -f prototypes.h.tmp prototypes.h
checkin:
	${RCSCI} -m# -l ${SRCS} ${HS} Makefile
	
tidy:checkin
	${INDENT} -ts0 -i2 ${SRCS} ${HS}

ifeq (.depend,$(wildcard .depend))
  include .depend
endif

@


1.12
log
@#
@
text
@a0 17
# /*************************************************
# *   nope - open source drivers for the yepp(tm)  *
# *************************************************/
#
# /* Copyright (c) 2001, James McKenzie.
#  *                      All rights reserved
#  *
#  * By using this file, you agree to the terms and conditions set
#  * forth in the LICENCE file which can be found at the top level of
#  * the nope distribution. Neither James McKenzie nor anybody else 
#  * warranties that it is legal to use this software - that is your
#  * problem. 
#  *
#  * yepp is a trademark of Samsung.
#  *
#  */
#
d26 6
d33 1
a33 33

######## BEGIN USER SERVICABLE PARTS #######

#where to install
DESTDIR=/usr

#None as yet
DEFINES=

# System stuff
CC	 = gcc
INCLUDES =
OPT	 = -O
WARN	 = -Wall -Wstrict-prototypes -Wno-unused
CFLAGS   = ${OPT} ${INCLUDES} ${WARN} ${DEFINES}
LIBS	 =
LDFLAGS  =

#path to X11R6 style makedepend
MAKEDEPEND=makedepend

#path to a BSD compatible install
INSTALL=install

######### NO USER SERVICEABLE PARTS BELOW HERE ####

VERSION=1.2

COFLAGS=-l

INDENT=indent -i2 -ts0
CPROTO=cproto
RCSCI=ci
d36 1
d38 6
a43 28
LIBS=${LIB} ${DBLIB}


default:do-it-all

ifeq (.depend,$(wildcard .depend))
include .depend
do-it-all: all
	@@echo " " Now type make install to install nope
else
do-it-all: depend
	@@echo " " Now type make again to build nope
endif

BINDIR= ${DESTDIR}/bin
BINOWN= root
BINGRP= kmem
BINMODE=555

MANOWN= bin
MANGRP= bin
MANMODE=444

MANROOT=${DESTDIR}/man/man
MAN1=   ${MANROOT}1
MAN1EXT=1
MAN1SRC=man

a48 7
MEN=nope.1
TXTMEN=${MEN:%=doc/%}

NROFF=  groff -Tascii
NRCLN = sed 's/.//g'
MANDOC= -mandoc

d63 1
a63 1
	/bin/rm -rf *% *~ ${OBJS} core a.out ${PROG} .depend
d66 2
a67 1
	${MAKEDEPEND} -f- -- $(INCLUDES) -- $(SRCS) > .depend
d82 3
a84 28
doc:${MEN}

doc/nope.1:nope.man
	${NROFF} ${MANDOC} $< | ${NRCLN} > $@@

%.${MAN1EXT}:%.${MAN1SRC}
	cp $< $@@

MYDIR=nope-${VERSION}

distrib:
	${MAKE} tidy
	${MAKE} protos
	${MAKE} doc
	${MAKE} clean
	${MAKE} ${TXTMEN}
	${MAKE} nodepend
	cd ..; tar cvfzX ${MYDIR}/DISTRIB/${MYDIR}.tar.gz ${MYDIR}/.xclude ${MYDIR}


install: install-prog install-docs

install-prog:${PROG}
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${PROG} ${BINDIR}

install-docs: doc
	${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} nope.${MAN1EXT} ${MAN1}/nope.${MAN1EXT}

a85 1
# DO NOT DELETE
@


1.11
log
@#
@
text
@d1 17
d24 1
a24 1
# $Id: Makefile,v 1.10 2001/01/07 22:26:43 root Exp root $
d27 3
a42 6
#####################################################################
#
# Makefile:
#
#
######################################################################
d44 33
a76 1
include ../make.inc
a78 1
OPT=-g
d80 28
a107 6
DEFINES=-DHIFI
INCLUDES  = -I../libfiles ${DBINC} 
CFLAGS= $(OPT) $(DEFINES) $(INCLUDES) ${WARN}
LDFLAGS=
LIB=../libfiles/libfiles.a  
LIBS=${LIB} ${DBLIB} 
d113 7
d134 1
a134 1
	/bin/rm -rf *% *~ ${OBJS} core a.out ${PROG}
d137 1
a137 1
	${MAKEDEPEND} -s "# DO NOT DELETE" -- $(INCLUDES) -- $(SRCS)
d139 1
a139 1
	${MAKEDEPEND} -s "# DO NOT DELETE"
d152 29
a181 56

ieee1284.o: project.h /usr/include/stdio.h /usr/include/features.h
ieee1284.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
ieee1284.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
ieee1284.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
ieee1284.o: /usr/include/bits/types.h /usr/include/libio.h
ieee1284.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
ieee1284.o: /usr/include/malloc.h /usr/include/stdlib.h
ieee1284.o: /usr/include/sys/types.h /usr/include/time.h
ieee1284.o: /usr/include/endian.h /usr/include/bits/endian.h
ieee1284.o: /usr/include/sys/select.h /usr/include/bits/select.h
ieee1284.o: /usr/include/bits/sigset.h /usr/include/sys/sysmacros.h
ieee1284.o: /usr/include/alloca.h /usr/include/sys/time.h
ieee1284.o: /usr/include/bits/time.h /usr/include/string.h
ieee1284.o: /usr/include/strings.h yepplib.h prototypes.h
ieee1284.o: /usr/include/asm/io.h
util.o: project.h /usr/include/stdio.h /usr/include/features.h
util.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
util.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
util.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
util.o: /usr/include/bits/types.h /usr/include/libio.h
util.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
util.o: /usr/include/malloc.h /usr/include/stdlib.h /usr/include/sys/types.h
util.o: /usr/include/time.h /usr/include/endian.h /usr/include/bits/endian.h
util.o: /usr/include/sys/select.h /usr/include/bits/select.h
util.o: /usr/include/bits/sigset.h /usr/include/sys/sysmacros.h
util.o: /usr/include/alloca.h /usr/include/sys/time.h
util.o: /usr/include/bits/time.h /usr/include/string.h /usr/include/strings.h
util.o: yepplib.h prototypes.h
yepplib.o: project.h /usr/include/stdio.h /usr/include/features.h
yepplib.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
yepplib.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
yepplib.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
yepplib.o: /usr/include/bits/types.h /usr/include/libio.h
yepplib.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
yepplib.o: /usr/include/malloc.h /usr/include/stdlib.h
yepplib.o: /usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h
yepplib.o: /usr/include/bits/endian.h /usr/include/sys/select.h
yepplib.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
yepplib.o: /usr/include/sys/sysmacros.h /usr/include/alloca.h
yepplib.o: /usr/include/sys/time.h /usr/include/bits/time.h
yepplib.o: /usr/include/string.h /usr/include/strings.h yepplib.h
yepplib.o: prototypes.h
yepp.o: project.h /usr/include/stdio.h /usr/include/features.h
yepp.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
yepp.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
yepp.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
yepp.o: /usr/include/bits/types.h /usr/include/libio.h
yepp.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
yepp.o: /usr/include/malloc.h /usr/include/stdlib.h /usr/include/sys/types.h
yepp.o: /usr/include/time.h /usr/include/endian.h /usr/include/bits/endian.h
yepp.o: /usr/include/sys/select.h /usr/include/bits/select.h
yepp.o: /usr/include/bits/sigset.h /usr/include/sys/sysmacros.h
yepp.o: /usr/include/alloca.h /usr/include/sys/time.h
yepp.o: /usr/include/bits/time.h /usr/include/string.h /usr/include/strings.h
yepp.o: yepplib.h prototypes.h
@


1.10
log
@#
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.9 2001/01/07 17:34:54 root Exp root $
d10 3
d33 1
@


1.9
log
@#
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.8 2001/01/07 04:49:58 root Exp $
d10 3
a29 1
OPT=-g
d36 1
a36 1
LIBS=${LIB} ${DBLIB} -lefence
@


1.8
log
@#
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.7 2001/01/07 03:48:47 root Exp root $
d10 3
d33 2
a34 2
LIB=../libfiles/libfiles.a 
LIBS=${LIB} ${DBLIB} 
@


1.7
log
@#
@
text
@d7 5
a11 1
# $Id:$
a12 1
# $Log:$
d35 1
a35 1
HS= project.h
d61 1
a61 1
	for i in ${PSRCS}; do ${CPROTO}  ${INCLUDES} $$i | grep -v ^__ >> prototypes.h.tmp; done
@


1.6
log
@#
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.5 2001/01/04 15:51:02 root Exp $
d9 1
a9 3
# $Log: Makefile,v $
# Revision 1.5  2001/01/04 15:51:02  root
# #
d11 1
a11 2
# Revision 1.4  2001/01/04 13:52:31  root
# #
d13 1
a13 2
# Revision 1.3  2001/01/04 06:07:21  root
# #
a14 2
# Revision 1.2  2001/01/04 04:40:44  root
# #
d16 6
a21 9
# Revision 1.1  2001/01/04 04:39:27  root
# #
#
#
CFLAGS=-O2
CPROTO=cproto
PCFLAGS=
SRCS=yepplib.c ieee1284.c yepp.c util.c
HS=yepplib.h project.h 
d23 6
d30 3
a32 1
RCSGUNK=${SRCS} ${HS} Makefile
d34 1
a34 2
OBJS=${SRCS:%.c=%.o}
PROG=nope
d36 1
d38 2
a39 2
${PROG}:${OBJS}
	${CC} ${CFLAGS} ${LDFLAGS} -o $@@ ${OBJS} ${LIBS}
d41 2
a42 2
ieee1284.o:ieee1284.c
	${CC} ${CFLAGS} -c -O2 -o $@@ $<
d44 2
d47 2
a48 2
checkin:
	ci -l -m# ${RCSGUNK}
d50 4
a53 2
tidy:checkin
	indent -i2 -ts0 ${HS} ${SRCS}
d57 5
a61 3
	echo > prototypes.tmp
	for i in ${SRCS}; do ${CPROTO} ${PFLAGS} $$i >>  prototypes.tmp; done
	/bin/mv -f prototypes.tmp prototypes.h
d63 60
a122 2
clean:
	/bin/rm -f *% *~ a.out core *.BAK ${PROG} ${OBJS}
@


1.5
log
@#
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.4 2001/01/04 13:52:31 root Exp root $
d10 3
d36 1
a36 1
PROG=yepp
@


1.4
log
@#
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.3 2001/01/04 06:07:21 root Exp root $
d10 3
d27 1
a27 1
HS=yepplib.h project.h yepp.h
@


1.3
log
@#
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.2 2001/01/04 04:40:44 root Exp root $
d10 3
d23 2
a24 2
SRCS=yepplib.c ieee1284.c yepp.c
HS=yepplib.h project.h
@


1.2
log
@#
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.1 2001/01/04 04:39:27 root Exp root $
d10 3
d17 5
a21 2
SRCS=yepp.c ieee1284.c
HS=yepp.h project.h
a22 1
CFLAGS=-g
d43 6
d50 1
a50 3
	/bin/rm *% *~ a.out core *.BAK ${PROG} ${OBJS}


@


1.1
log
@#
@
text
@d7 5
a11 1
# $Id:$
a12 1
# $Log:$
d34 6
@
