### Makefile for xbatch  01/31/91 - wkk


DEFS		=	-D_NO_PROTO -DSYS_DIR -DNO_REGEX -DUSE_GETWD

LIBS		=	-L /lusr/lib/X11 -lXext -lX11
INCLUDES	=	-I/usr/include -I/lusr/include

HP320LIBS	=	-L /usr/lib/X11R4 -lXext -lX11
HP320INCLUDES	=	-I/usr/include -I/usr/include/X11R4


CDIR		=	/v/ai/v5/qr/xpos/xbatch-dir
HP370DIR	=	/v/ai/v5/qr/xpos/bins/HP-370_LUCID
HP320DIR	=	/v/ai/v5/qr/xpos/bins/New-HP_L4.0
SUN4DIR		=	/v/ai/v5/qr/xpos/bins/sun4_3.0



### Just a generic xbatch for testing

xbatch		: xbatch.o
	rm -f xbatch
	cc -o xbatch xbatch.o $(LIBS)
	rm -f xbatch.o

xbatch.o	: xbatch.c
	cc $(INCLUDES) $(DEFS) -c xbatch.c




### The make for the hps.

hp370		: $(HP370DIR)/xbatch.o
	rm -f $(HP370DIR)/xbatch
	cc -o $(HP370DIR)/xbatch $(HP370DIR)/xbatch.o $(LIBS)
	rm -f $(HP370DIR)/xbatch.o

$(HP370DIR)/xbatch.o	: $(CDIR)/xbatch.c
	cc $(INCLUDES) $(DEFS) -o $(HP370DIR)/xbatch.o -c $(CDIR)/xbatch.c



hp320		: $(HP320DIR)/xbatch.o
	rm -f $(HP320DIR)/xbatch
	cc -o $(HP320DIR)/xbatch $(HP320DIR)/xbatch.o $(HP320LIBS)
	rm -f $(HP320DIR)/xbatch.o

$(HP320DIR)/xbatch.o	: $(CDIR)/xbatch.c
	cc $(HP320INCLUDES) $(DEFS) -o $(HP320DIR)/xbatch.o -c $(CDIR)/xbatch.c




### The make for the suns.

sun4		: $(SUN4DIR)/xbatch.o
	rm -f $(SUN4DIR)/xbatch
	cc -o $(SUN4DIR)/xbatch -Bstatic $(SUN4DIR)/xbatch.o $(LIBS)
	rm -f $(SUN4DIR)/xbatch.o

$(SUN4DIR)/xbatch.o	: $(CDIR)/xbatch.c
	cc $(INCLUDES) $(DEFS) -o $(SUN4DIR)/xbatch.o -c $(CDIR)/xbatch.c








