# Uncommment the appropriate lines for your system

# Another possible CFLAG is -DSEAMLESS which enables the use of the
# seamless editting extension

# -DSYSLOG , with a 4.3 system enables the use of syslog instead of logging
# directly to a file

# -DSIGGRAPH enables the hooks for the 1989 ACM/SIGGRAPH scheduling &
# authentication system

# for 4.3BSD
CFLAGS = -DUNIXCONN -DSYSLOG -DSIGGRAPH -DSEAMLESS
LIBS = 

# for SYSV
#CFLAGS = -DSYSV 
#LIBS = -lbsdipc -lBSD

SHELL = /bin/sh

SERVEROBJECTS = galatead.o dealwithit.o acceptnew.o rpdutil.o ttyutil.o\
	sony_driver.o vdp50_driver.o pana_driver.o video_conf.o\
	hash.o timers.o a4x1_driver.o swtrutil.o servutils.o\
	dofuncs.o netswtr_driver.o netrpd_driver.o listfuncs.o\
	write_host_file.o notify_hosts.o rebuildvolumes.o\
	build_volumes.o locker.o bsdsyslog.o siggraph.o supervisor.o\
	pe8x1_driver.o

galatead: $(SERVEROBJECTS)
	cc -o galatead $(SERVEROBJECTS) ../Glib/libG.a $(LIBS)
	chmod 775 galatead

.c.o: xpointer.h
	cc $(CFLAGS) -c $*.c
	chmod 664 $*.o

clean: 
	rm -f *.o core galatead

install: galatead
	install -o root -m 4755 galatead /etc

uninstall:
	rm -f /etc/galatead
