# Makefile for C program which uses copa library.
#
# Environment var COPA_HOME needs to be set before running
# this makefile, or using the examples.  COPA_HOME
# should contain the path name of the main copa directory,
# where the file gui.def is located.
#
# SCG 12-29-95
#

### Linux
###
CC = gcc -I/usr/include/bsd			  # Linux
XLIBEDIR = -L/usr/lib/X11                         # Linux
LIB = $$COPA_HOME/copa.a  -lX11 -lm -lbsd         # Linux


### SunOX 4.x
###
#CC = cc					   # Sunos 4
#XLIBEDIR = -L/usr/lib/X11			   # Sunos 4
#LIB = $$COPA_HOME/copa.a  -lX11 -lm    	   # Sunos 4



### Solaris 2.x
###
#CC=cc							# Solaris 2
#XLIBEDIR = -L/usr/openwin/lib				# Solaris 2
#SLEEPLIB = -lposix4					# Solaris 2 only
#LIB = $$COPA_HOME/copa.a  -lX11 $(SLEEPLIB) -lm  	# Solaris 2



all: demo preview alarm

install: all

demo.obj: demo.o 

preview.obj: preview.o

demo: demo.o 
	$(CC) demo.o $(XLIBEDIR) $(LIB) -o demo

preview: preview.o
	$(CC) preview.o $(XLIBEDIR) $(LIB) -o preview

alarm: alarm.o
	$(CC) alarm.o $(XLIBEDIR) $(LIB) -o alarm

clean:
	rm demo alarm preview
