1 ##############################################################################
3 # $Id: GNUmakefile,v 1.7 2005/03/05 21:38:33 nedko Exp $
6 # Makefile for console mediadatabase frontends
9 # Nedko Arnaudov <nedko@users.sourceforge.net>
12 # GNU GENERAL PUBLIC LICENSE version 2
14 ##############################################################################
18 include $(PATHTOTOP
)common.mk
25 OBJECTS
= $(SOURCES
:%.c
=%.o
)
26 DEP_FILES
= $(OBJECTS
:.o
=.d
)
33 $(ECHO
) "Compiling $< to $@ ..."
34 $(CC
) $(CFLAGS
) $< -o
$@
37 @echo
"Creating dependency file $@ for $<"
41 $(ECHO
) "Removing dependency files ..."
42 $(RM_BEGIN
) $(DEP_FILES
) $(RM_END
)
45 $(ECHO
) "Cleaning ..."
46 $(RM_BEGIN
) mdb_cui
$(RM_END
)
47 $(RM_BEGIN
) $(OBJECTS
) $(RM_END
)
51 mdb_cui
: $(OBJECTS
) ..
/libfrontend
/libfrontend.a ..
/libdb
/libdb.a
53 $(LINK
) $(LINKFLAGS
) $(OBJECTS
) ..
/libfrontend
/libfrontend.a ..
/libdb
/libdb.a
-lmysqlclient
-lgdsl
-lcfl
-lsqlite
-o
$@
55 # All object and dependency files depend on this file
56 $(OBJECTS
) $(DEP_FILES
): GNUmakefile
58 ifeq (,$(findstring clean,$(TARGET
)))
62 ##############################################################################
66 # !!! WARNING !!! Following lines are automatically updated by the CVS system.
68 # $Log: GNUmakefile,v $
69 # Revision 1.7 2005/03/05 21:38:33 nedko
70 # Rebuild binary when our libraries have changed.
72 # Revision 1.6 2004/11/21 14:02:18 nedko
73 # Link with gdsl library
75 # Revision 1.5 2004/06/20 12:24:21 nedko
76 # Use dependency files.
77 # Use common tool variables.
79 # Revision 1.4 2004/05/16 19:07:54 nedko
82 # Revision 1.3 2004/05/11 01:33:48 nedko
85 # Revision 1.2 2004/05/03 20:48:48 nedko
86 # configuration file and update mode for cui
88 # Revision 1.1 2004/05/02 13:24:36 nedko
89 # Use makefile to build cui frontend(s).
91 ##############################################################################