# Makefile for `file'.
#
DST = /usr/gnubin
CONFIG = /usr/local/lib/file.types
GNU = ../../gnulib

file: file.o regex.o
	cc -o file file.o regex.o

file.o: file.c $(GNU)/regex.h
	cc -O -c file.c -I$(GNU) -DCONFIG_FILE=\"$(CONFIG)\"
 
regex.o: $(GNU)/regex.c $(GNU)/regex.h
	cc -O -c $(GNU)/regex.c -I$(GNU)

install: 
	mv file $(DST)
	cp filetypes $CONFIG

clean:
	rm file.o regex.o

