1 ##############################################################################
3 # $Id: GNUmakefile,v 1.2 2004/05/21 23:43:38 nedko Exp $
6 # Makefile for console mediadatabase frontends
9 # Nedko Arnaudov <nedko@users.sourceforge.net>
12 # GNU GENERAL PUBLIC LICENSE version 2
14 ##############################################################################
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
33 $(TOOL_PREFIX
)echo
"Compiling $< to $@ ..."
34 $(CC
) $(CFLAGS
) $< -o
$@
38 -$(TOOL_PREFIX
)rm $(OBJECTS
) 2>/dev
/null
; echo
-n
39 -$(TOOL_PREFIX
)rm mdb_gtk
2>/dev
/null
; echo
-n
44 $(TOOL_PREFIX
)echo
"Linking $@"
45 $(LINK
) $(LINKFLAGS
) $(OBJECTS
) ..
/libfrontend
/libfrontend.a ..
/libdb
/libdb.a
-lmysqlclient
-lcfl
-lsqlite
-o
$@
47 ##############################################################################
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
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 ##############################################################################