# Makefile for camdrv libraries
# Created by Enomoto Sanshiro on 23 July 1999.  
# Last updated by Enomoto Sanshiro on 23 July 1999.


CC = gcc
CFLAGS = -O -Wall -I/usr/include


all: camlib.o toyocamac.o inhibit_test lam_test camaction_test poll_test


camlib.o: camlib.c camlib.h camdrv.h


toyocamac.o: toyocamac.c toyocamac.h camdrv.h


inhibit_test: inhibit_test.o camlib.o
	$(CC) $(CFLAGS) -o $@ $@.o camlib.o


lam_test: lam_test.o camlib.o
	$(CC) $(CFLAGS) -o $@ $@.o camlib.o

camaction_test: camaction_test.o toyocamac.o
	$(CC) $(CFLAGS) -o $@ $@.o toyocamac.o

poll_test: poll_test.o
	$(CC) $(CFLAGS) -o $@ $@.o


.c.o:
	$(CC) $(CFLAGS) -c $< 


clean:
	rm -f *.o
	rm -f inhibit_test lam_test camaction_test poll_test

