# Enter your Forms-path here:
CFLAGS=-I/usr/local/bv/forms/$(HOSTTYPE) -Wall -O $(USESHM)

#comment out the next 2 lines if your computer does not have shared memory
# XSHMEMLIB=-lXext
# USESHM=-DXSHMEM

# Enter your Forms-path here:
LDFLAGS=$(CFLAGS) -L/usr/local/bv/forms/$(HOSTTYPE)

C_SRCS=xfqcam.c controlpanel.c

TARGETS=xfqcam 


xfqcam: xfqcam.o controlpanel.o 
	$(CC) $(LDFLAGS) -o xfqcam xfqcam.o controlpanel.o -L.  \
			-L/usr/X11R6/lib -lforms $(XSHMEMLIB) -lX11 -lm 

depend:: $(C_SRCS)
	sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
	$(CC) $(CFLAGS) -MM $(C_SRCS) >> tmp_make
	mv tmp_make Makefile

clean:
	rm *.o $(TARGETS)

package:
	tar cfvz xfqcam.tgz *.c *.h *.fd Makefile xfqcam README 

### Dependencies:
xfqcam.o: xfqcam.c controlpanel.h
controlpanel.o: controlpanel.c controlpanel.h
