Various untracked changes.
[mediadatabase.git] / cui / GNUmakefile
blob44ac4313d32f4895046eaaa48f403ec2825a6cc4
1 ##############################################################################
3 # $Id: GNUmakefile,v 1.1 2004/05/02 13:24:36 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 -Wall
19 LINK = $(TOOL_PREFIX)gcc
21 SOURCES = addcd.c
23 OBJECTS = $(SOURCES:%.c=%.o)
25 # until we have dependencies it is better to rebuild each time
26 default: rebuild
28 build: addcd
30 %.o:%.c
31 $(TOOL_PREFIX)echo "Compiling $< to $@ ..."
32 $(CC) $(CFLAGS) $< -o $@
35 clean:
36 -$(TOOL_PREFIX)rm $(OBJECTS) 2>/dev/null ; echo -n
37 -$(TOOL_PREFIX)rm addcd 2>/dev/null ; echo -n
39 rebuild: clean build
41 addcd: $(OBJECTS)
42 $(TOOL_PREFIX)echo "Linking $@"
43 $(LINK) $(OBJECTS) ../libdb/libdb.a -lmysqlclient -o $@
45 ##############################################################################
47 # Modifications log:
49 # !!! WARNING !!! Following lines are automatically updated by the CVS system.
51 # $Log: GNUmakefile,v $
52 # Revision 1.1 2004/05/02 13:24:36 nedko
53 # Use makefile to build cui frontend(s).
55 ##############################################################################