# makefile for emx/gcc

EXENAME = \rsx\bin\deb.exe
NAME	= deb.emx
CC	= gcc
CFLAGS	= -O2
LIBS	=
STUB	= \rsx\bin\emxldpmi.exe
BIND	= emxbind -b -s $(STUB) $(NAME) $(EXENAME)

.c.o:
	$(CC) $(CFLAGS) -c $<

OBJ = \
	deb.o \
	syms.o \
	unassmbl.o \
	breakp.o \
	input.o \
	dpmi.o

$(EXENAME) : $(NAME) $(STUB)
	$(BIND)

$(NAME) : $(OBJ)
	$(CC) -o $(NAME) $(OBJ) $(LIBS)
