#
# Makefile for mkms
# (c)1994,1996  Eric R. Augustine
#
D=-O2
INCL=-I/usr/include
SPC=-fwritable-strings -traditional

# if the executable gives you seg faults and core dumps when running
# add ${SPC) to the next line.
#
CFLAGS=${D} ${INCL}

# strsep is included here - comment out the line that includes 
# strsep.c and uncomment the line that does not IF your compiler's
# clib includes strsep()  Strsep.c is part of the BSD compiler.
# The sources for strsep.c are copyrighted by BSD.
#
#SRCS=mkms.c
SRCS=mkms.c strsep.c

OBJS=${SRCS:.c=.o}
PROG=mkms
CC=gcc

all: ${PROG} clobber

.c.o: ${SRCS}
	${CC} ${CFLAGS} -c $<

${PROG}: ${OBJS}
	${CC} -o ${PROG} ${OBJS}

clean:
	chmod 600 ${SRCS} ${BAKS} ${OBJS} ; rm -f *~ ;
	chmod 700 ${PROG}

clobber:
	chmod 600 ${SRCS} ${BAKS} ${OBJS} ;
	rm -f ${OBJS} ; chmod 700 ${PROG} ;
	strip ${PROG}


