# dmakefile for use with DICE's dmake

CC = dcc
DEFS = -DSTDC_HEADERS -DHAVE_BCOPY -DHAVE_BSTRING -DHAVE_ALLOCA_H -DREGEX_MALLOC
CFLAGS = -E DCC_ERRORS -r -ms -gs -DDCC_DYNAMIC_STACKS
LIBS =

SRCS =   sed.c utils.c regex.c getopt.c getopt1.c
OBJS =   $(SRCS:*.c:*.o)

all:    sed

sed:    $(OBJS)
    $(CC) $(CFLAGS) %(right) -o %(left) $(LIBS)

$(OBJS):    $(SRCS)
    $(CC) $(CFLAGS) $(DEFS) -c %(right)

sed.o regex.o:  regex.h

sed.o getopt1.o:    getopt.h

clean:
    -delete sed #?.o DCC_ERRORS
