# Uncommment the appropriate lines for your system

# Another possible CFLAG is -DPLX which enables the use of live video
# windows   Also need the plx version of Xext.a for this option.

# for 4.3BSD
CFLAGS = -DPLX
LIBS = /usr/local/lib/libXext.a -lX

# for SYSV
#CFLAGS = -DSYSV -Wc,-Nd2000 -Wc,-Ns2000 
#LIBS = -lX -lbsdipc -lBSD

OBJECTS = gctl.o tempdolive.o create_windows.o get_fonts.o\
	create_gcs.o setmap.o create_cursor.o setcontext.o\
	create_root.o show_volumes.o show_enable.o control_discs.o\
	show_controller.o text.o show_frame.o enter_key.o show_icon.o\
	error_handler.o

gctl: $(OBJECTS) Makefile
	cc -o gctl $(OBJECTS) ../../Glib/libG.a $(LIBS)

clean:
	rm -f core *.o gctl

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

install: gctl
	install -o root -m 755 gctl /usr/local/bin

uninstall:
	rm -f /usr/local/bin/gctl
