CPP=c++
CFLAGS=-D__X11__=1
LINK=c++ -lX11

all: Xmmx mmm_cfg

%.o: %.cpp
	$(CPP) $(CFLAGS) -c -o $@ $<

Xmmx : mmmx.o mmmtext.o mmmgrep.o mmm_x11.o mmm_unx.o
	$(LINK) -o Xmmx   mmmx.o mmmtext.o mmmgrep.o mmm_x11.o mmm_unx.o

mmm_cfg : mmm_cfg.o
	$(LINK) -o mmm_cfg  mmm_cfg.o

mmmx.o  : mmmx.cpp     mmmx.h mmmconst.h mmm_comm.h mmmgrep.h mmm_x11.h
mmmtext.cpp : mmm_x11.h
mmmgrep.cpp : mmm_x11.h

include makedep.mif

#&>>&1 0 1 10
