1# $Log: Makefile.am,v $
2# Revision 1.9  2008/12/30 00:37:27  wb6ymh
3# 1. Removed symlink generation for play, imike, ispeaker.  Eventually these
4#    will be created elsewhere.
5# 2. Added code to remove any old tbdchat or tlbchat symlinks on install
6#    before attempting to create new links.
7#
8# Revision 1.8  2008/02/26 18:19:01  wb6ymh
9# Added dmalloc support.:
10#
11# Revision 1.7  2007/12/23 21:18:59  wb6ymh
12# Added readline support for tbdcmd.
13#
14# Revision 1.6  2007/12/14 22:59:01  wb6ymh
15# Added readline lib to link.
16#
17# Revision 1.5  2007/12/07 23:16:17  wb6ymh
18# Modfied to build the tlbcmd variation of tbdcmd when LINK_BOX is defined.
19#
20# Revision 1.4  2007/06/29 16:55:07  wb6ymh
21# Added $(DESTDIR) to path for install and uninstall hooks.
22#
23# Revision 1.3  2007/06/29 14:32:39  wb6ymh
24# 1. Added install hook to create a link from tbdcmd to tbdchat.
25# 2. Added an uninstall hook to delete tbdchat symbolic link.
26#
27# Revision 1.2  2003/09/01 00:38:33  wb6ymh
28# Uncomment EXTRA_DIST of tbdcmd.dsp.
29#
30# Revision 1.1  2003/08/16 14:27:27  wb6ymh
31# Initial import: command line utility to send commands to thebridge.
32#
33#
34
35
36AM_CPPFLAGS = -I$(srcdir)/../inc -I$(srcdir)/..
37AM_CFLAGS = -Wall
38
39if LINK_BOX
40# building for thelinkbox ########
41
42bin_PROGRAMS = tlbcmd
43tlbcmd_SOURCES = tbdcmd.c
44tlbcmd_LDADD = $(LIBREADLINE) $(LIBDMALLOC)
45AM_CFLAGS += -DLINK_BOX
46
47install-exec-hook:
48	if test -f $(DESTDIR)$(bindir)/tlbchat; then \
49		rm $(DESTDIR)$(bindir)/tlbchat; \
50	fi
51	ln -s $(DESTDIR)$(bindir)/tlbcmd $(DESTDIR)$(bindir)/tlbchat
52
53uninstall-hook:
54	rm $(DESTDIR)$(bindir)/tlbchat
55
56else
57
58# building for thebridge  ########
59EXTRA_DIST = tbdcmd.dsp
60bin_PROGRAMS = tbdcmd
61tbdcmd_SOURCES = tbdcmd.c
62tbdcmd_LDADD = $(LIBREADLINE) $(LIBDMALLOC)
63
64install-exec-hook:
65	if test -f $(DESTDIR)$(bindir)/tbdchat; then \
66		rm $(DESTDIR)$(bindir)/tbdchat; \
67	fi
68	ln -s $(DESTDIR)$(bindir)/tbdcmd $(DESTDIR)$(bindir)/tbdchat
69
70uninstall-hook:
71	rm $(DESTDIR)$(bindir)/tbdchat
72
73endif
74
75if USE_DMALLOC
76AM_CFLAGS += -DUSE_DMALLOC
77endif
78
79