CFLAGS = -DXAW_BC -g -pipe
LFLAGS = -g -pipe


LIBS = -lXaw -lXmu -lXt -lX11 -lm

NAME = xged5.0

HDRS = embed_ops.h file_ops.h ged.h view_hand.h tool_static.h DrawingP.h Drawing.h
SOURCES = embed_ops.c file_ops.c mode_ops.c ged.c view_hand.c Drawing.c
OBJECTS = embed_ops.o file_ops.o mode_ops.o ged.o view_hand.o Drawing.o

$(NAME):	$(OBJECTS)
	$(CC) $(LFLAGS) $(OBJECTS) -o $(NAME) $(LIBS)

Drawing.o:	Drawing.c DrawingP.h Drawing.h

ged.o:		ged.h 

view_hand.o:	ged.h view_hand.h embed_ops.h Drawing.h tool_static.h

embed_ops.o:    ged.h embed_ops.h

mode_ops.o:     ged.h 

file_ops.o:     ged.h embed_ops.h

clean:
	@echo "Removing object files for $(NAME)..."
	rm -f core *.o

clobber:
	@echo "Removing objects and command files for $(NAME)..."
	rm -f $(NAME) core *.o
