#
#	Makefile for Spacial Join with MLGF
#

.KEEP_STATE:

CC= cc
RM= /bin/rm
INSTALL= /usr/bin/install

LIBDIR= ../lib
BINDIR= ../bin

# please specify the followings appropriately.
# -DNDEBUG : if you don't want to see 'assert' error.
C = -Qoption cpp -B
D = -g -I../include -DDEBUG
CFLAGS = $(C) $(D)
LDFLAGS= -L../lib

SRCS = dictman.c
OBJS = dictman.o

all: dictman install

install: dictman
	-$(INSTALL) -d $(BINDIR)
	$(INSTALL) dictman $(BINDIR)

dictman: $(OBJS) $(LIBS) ../lib/libtoken.a ../lib/libkimmo.a ../lib/libdict.a
	$(CC) $(LDFLAGS) $(CFLAGS) $(OBJS) $(LIBS) -ltoken -lkimmo -ldict -ll -o $@

clean :
	-$(RM) *.o dictman Makefile.bak

depend :
	makedepend -- $(D) -- $(SRCS)

#
# DO NOT DELETE THIS LINE -- make depend depends on it.

dictman.o: /usr/include/stdio.h /usr/include/fcntl.h
dictman.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stdtypes.h
dictman.o: /usr/include/wchar.h /usr/include/sys/stat.h
dictman.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
dictman.o: /usr/include/limits.h ../common.h ../include/dictAPI.h
dictman.o: ../include/MAdict.h ../config.h ../include/token.h dictman.h
