# Generated automatically from Makefile.in by configure.
# Makefile for GNU SED, a batch editor.
# Copyright (C) 1987, 1991 Free Software Foundation, Inc.

release:
	$(MAKE) all CC="gcc -Zomf -Zmtd -O -s" O=.obj \
	REGEX=librx.lib DYNLIB=gnurx.dll
debug:
	$(MAKE) all CC="gcc -g" O=.o REGEX=rx.o

CFLAGS = -DUSG -DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_VPRINTF -DHAVE_MEMCPY
LFLAGS = sed.def

OBJS = sed$O utils$O getopt$O getopt1$O
DLL = rx$O dllmain$O

.SUFFIXES: .c $O

.c$O:
	$(CC) -c $(CFLAGS) -I. $<

all: sed.exe $(DYNLIB)

sed.exe: $(OBJS) $(REGEX)
	$(CC) -o $@ $(OBJS) $(REGEX) $(LFLAGS)

gnurx.dll: gnurx.def $(DLL)
	$(CC) -Zdll $(DLL) -o $@ gnurx.def

librx.lib: gnurx.def
	emximp -o librx.imp gnurx.def
	emximp -o $@ librx.imp

sed$O rx$O: rx.h 
sed$O getopt1$O: getopt.h

clean:
	rm -f *.o *.obj librx.lib librx.imp core
