new frontend - FUSE
[mediadatabase.git] / cui / GNUmakefile
blob20bb08a27b6d5ef2099ee2b970ac57d5c509ea34
1 ##############################################################################
3 # $Id: GNUmakefile,v 1.7 2005/03/05 21:38:33 nedko Exp $
5 # DESCRIPTION:
6 # Makefile for console mediadatabase frontends
8 # AUTHOR:
9 # Nedko Arnaudov <nedko@users.sourceforge.net>
11 # LICENSE:
12 # GNU GENERAL PUBLIC LICENSE version 2
14 ##############################################################################
16 PATHTOTOP=../
18 include $(PATHTOTOP)common.mk
20 CFLAGS := -g -Wall
21 LINKFLAGS := -g
23 SOURCES = main.c
25 OBJECTS = $(SOURCES:%.c=%.o)
26 DEP_FILES = $(OBJECTS:.o=.d)
28 default: build
30 build: mdb_cui
32 %.o:%.c
33 $(ECHO) "Compiling $< to $@ ..."
34 $(CC) $(CFLAGS) $< -o $@
36 %.d:%.c
37 @echo "Creating dependency file $@ for $<"
38 $(GENDEP_C)
40 full_clean: clean
41 $(ECHO) "Removing dependency files ..."
42 $(RM_BEGIN) $(DEP_FILES) $(RM_END)
44 clean:
45 $(ECHO) "Cleaning ..."
46 $(RM_BEGIN) mdb_cui $(RM_END)
47 $(RM_BEGIN) $(OBJECTS) $(RM_END)
49 rebuild: clean build
51 mdb_cui: $(OBJECTS) ../libfrontend/libfrontend.a ../libdb/libdb.a
52 $(ECHO) "Linking $@"
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)))
59 -include $(DEP_FILES)
60 endif
62 ##############################################################################
64 # Modifications log:
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
80 # Use libfrontend
82 # Revision 1.3 2004/05/11 01:33:48 nedko
83 # Add SQLite support.
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 ##############################################################################