Implement media window.
[mediadatabase.git] / gtk / GNUmakefile
blobd3e81fa3ab494d95017c08ed8354697123ab8502
1 ##############################################################################
3 # $Id: GNUmakefile,v 1.2 2004/05/21 23:43:38 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 TOOL_PREFIX=@
18 CC = $(TOOL_PREFIX)gcc -c
19 LINK = $(TOOL_PREFIX)gcc -g
20 CFLAGS := -Wall -g $(shell pkg-config --cflags gtk+-2.0)
21 LINKFLAGS := $(shell pkg-config --libs gtk+-2.0)
23 SOURCES = main.c medias.c media.c helper.c
25 OBJECTS = $(SOURCES:%.c=%.o)
27 # until we have dependencies it is better to rebuild each time
28 default: rebuild
30 build: mdb_gtk
32 %.o:%.c
33 $(TOOL_PREFIX)echo "Compiling $< to $@ ..."
34 $(CC) $(CFLAGS) $< -o $@
37 clean:
38 -$(TOOL_PREFIX)rm $(OBJECTS) 2>/dev/null ; echo -n
39 -$(TOOL_PREFIX)rm mdb_gtk 2>/dev/null ; echo -n
41 rebuild: clean build
43 mdb_gtk: $(OBJECTS)
44 $(TOOL_PREFIX)echo "Linking $@"
45 $(LINK) $(LINKFLAGS) $(OBJECTS) ../libfrontend/libfrontend.a ../libdb/libdb.a -lmysqlclient -lcfl -lsqlite -o $@
47 ##############################################################################
49 # Modifications log:
51 # !!! WARNING !!! Following lines are automatically updated by the CVS system.
53 # $Log: GNUmakefile,v $
54 # Revision 1.2 2004/05/21 23:43:38 nedko
55 # Implement media window.
57 # Revision 1.1 2004/05/16 19:05:38 nedko
58 # Initial revision of the gtk frontend.
60 # Revision 1.3 2004/05/11 01:33:48 nedko
61 # Add SQLite support.
63 # Revision 1.2 2004/05/03 20:48:48 nedko
64 # configuration file and update mode for cui
66 # Revision 1.1 2004/05/02 13:24:36 nedko
67 # Use makefile to build cui frontend(s).
69 ##############################################################################