# Makefile for the C files in SCIX/STOX. Hakan Huss

# To install SCIX on a machine running DECwindows (ie not X11R4 or X11R5)
# uncomment the following line. This affects include files used by the
# files that are borrowed from X11R[45].
# EXTRAS = -DNOMITX

CFLAGS = -O

CONNTYPES = -DTCPCONN -DUNIXCONN # -DSTREAMSCONN -DDNETCONN

SCIXCSRC = Xlibsock.c ftypes.c rwsock.c auth.c

SCIXCOBJ = Xlibsock.o ftypes.o rwsock.o auth.o

STOXCSRC = cutil.c

STOXCOBJ = cutil.o

# Make in this directory is done by the makes in src and stox.

../libscix.a:	$(SCIXCOBJ)
		ar r ../libscix.a $(SCIXCOBJ)

../libstox.a:	$(STOXCOBJ)
		ar r ../libstox.a $(STOXCOBJ)

Xlibsock.o:	Xlibsock.c
		$(CC) -O2 $(CONNTYPES) $(EXTRAS) -c Xlibsock.c

auth.o:		auth.c
		$(CC) -O2 -c $(CFLAGS) $(EXTRAS) auth.c

clean:	;	rm core *.o *~ #*