home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-03-10 | 2.4 KB | 110 lines |
- # $Id: Smakefile,v 1.4 1994/03/10 17:42:08 jraja Exp $
- #
- # Smakefile for rcsrev utility
- #
- # Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
- # Helsinki University of Technology, Finland.
- #
- # Created : Sun Nov 28 17:25:35 1993 ppessi
- # Last modified: Mon Mar 7 23:12:36 1994 ppessi
- #
- # $Log: Smakefile,v $
- # Revision 1.4 1994/03/10 17:42:08 jraja
- # Removed docs from the installation, it will be done in higher level.
- #
- # Revision 1.3 1994/03/08 00:36:12 ppessi
- # Implemented prefix argument
- #
- # Revision 1.2 1994/02/17 01:55:55 ppessi
- # Added autodoc extraction
- #
- # Revision 1.1 1994/01/16 15:37:42 ppessi
- # Initial revision
- #
- # Revision 1.1 93/11/30 03:36:02 ppessi
- # Initial revision
- #
-
- PROG= rcsrev
-
- SRCS= $(PROG).c
- OBJS= $(PROG).o
- DOCS= $(PROG).doc
-
- LIBS= LIB LIB:sc.lib
- DEBUGLIBS= LIB LIB:sc.lib
-
- CC= sc
- LD= slink
- MAKE= smake
- TAGS= etags
- RM= delete quiet
- MKDIR= makedir
- INSTALL= copy nopro dates all
- AUTODOC= autodoc -C -I -c -t8
- RCSREV= rcsrev prefix=AmiTCP/IP_
- CAT= type
-
- DEST= AmiTCP:
-
- DEBUGFLAGS= NoOptimize DEBUG=FULLFLUSH
- OPTFLAGS= Optimize Debug=Line
- CFLAGS = $(OPTFLAGS)
- #CFLAGS = $(DEBUGFLAGS)
- LDFLAGS= noicons #stripdebug
-
- # "DEF=RCS_ID_C=static char *rcsid"
- DEFS= "DEF=RCS_ID_C=//" \
- DEF=AMIGA=1
- IDIRS= IDIR=/include IDIR=netinclude:
- SCOPTIONS= stringmerge structureequivalence \
- nostackcheck nomultipleincludes \
- noerrorsource noversion noerrorhighlight \
- smallcode smalldata unsignedchars \
- map maphunk mapsymbols maplib mapxreference \
- linkeroptions=plain noicons batch \
- optinl opttime optcomp=5 optdep=5 optrdep=5 \
- $(IDIRS) $(DEFS)
-
- all: $(PROG) # $(DOCS)
-
- $(PROG): SCOPTIONS $(PROG)_rev.h $(OBJS)
- $(LD) $(LDFLAGS) BATCH TO $@ FROM $(OBJS) $(LIBS)
- protect $(PROG) +pe
-
- debug:
- $(MAKE) "CFLAGS=$(DEBUGFLAGS)" "LIBS=$(DEBUGLIBS)" $(PROG)
-
- .c.o:
- -@$(RM) $*.o > nil:
- $(CC) $(CFLAGS) $*.c
-
- $(PROG)_rev.h: $(PROG).c
- $(RCSREV) $(PROG) $(PROG).c
-
- SCOPTIONS: Smakefile
- copy to $@ <from <
- $(SCOPTIONS)
- <
-
- install: all $(DEST)bin # $(DEST)doc
- $(INSTALL) $(PROG) $(DEST)bin
- # $(CAT) $(DOCS) > $(DEST)doc/$(PROG).doc
-
- $(DEST)bin:
- -$(MKDIR) $@
- $(DEST)doc:
- -$(MKDIR) $@
-
- $(DOCS): $(SRCS)
- $(AUTODOC) $(SRCS) >$@
-
- TAGS: $(SRCS)
- $(TAGS) $(SRCS)
-
- clean:
- -$(RM) \#?(.o|.map|.lnk|_rev.h|_rev.i) SCOPTIONS
-
- # DO NOT DELETE THIS LINE -- make depend depends on it.
- $(PROG).o: $(PROG).c $(PROG)_rev.h
-