OBJS	= font.o minix.o fontx2.o bdf.o #j3100.o

ifeq (../.config,$(wildcard ../.config))
include ../.config
endif

#CC = cc -g
#LD = cc -g

LOADLIBES = $(LIB)

all:	fld

fld:	fld.o font.a $(LIB)
	$(LD) -o fld fld.o font.a $(LIB)

font.a:	$(OBJS)
	$(AR) rcs font.a $(OBJS)

bdfcat: bdf.c $(LIB)
	$(CC) $(CFLAGS) -DBDFCAT -o bdfcat bdf.c $(LIB)

depend .depend:
	$(CC) $(CFLAGS) -M *.c > .depend

clean:
	$(RM) *.o fld font.a fontx.c *~ .depend

install: fld
	$(INSTALL) -m 4755 fld $(BINDIR)

ifeq (.depend,$(wildcard .depend))
include .depend
endif
