## Overly complex DMakefile: tail, head -- 16-Aug-92 D. Champion.
##
## Adjust CC, CFLAGS, LN to be compatible with your system.
## This stuff is known to compile under DICE and GCC for AmigaDOS,
## as well as BSD cc on a Sparc.  Amiga SAS fixes in the code aren't
## good enough, apparently.  No surprise.

## Compiler options
##
CC	= dcc		## AmigaDOS, DICE
#CC	= lc -L		## AmigaDOS, SAS -- broken here
#CC	= cc		## Lots o' things
#CC	= gcc -D GCC	## GNU CC
#CC	= zcc		## Sozobon C
CFLAGS	+= -r		## residentable in DICE
#CFLAGS	+= -resident	## residentable in Amiga GCC 2.1
#CFLAGS	+= -O		## optimize it (some systems, including GCC)
#CFLAGS	+= -mc68020	## Motorola 68020-tailored in GCC
LDFLAGS	=
SRCS	= headtail.c
TAIL	= tail
HEAD	= head

## define BEEF to get another option.  Only safe if you
## can figure out what it is without my telling you.
#DEFS	= -D BEEF

## Environment options
LN	= makelink	## AmigaDOS 2.0+
#LN	= copy		## AmigaDOS 1.3-
#LN	= ln		## Unix, Minix, Xenix, Ultrix, fooix, barix, ixixix...

all:		$(TAIL) $(HEAD)

$(TAIL):	$(SRCS)
		$(CC) $(CFLAGS) $(DEFS) -o $(TAIL) $(SRCS)

$(HEAD):	$(TAIL)
		$(LN) $(HEAD) $(TAIL)
