Access to project specific data files - initial revision.
[mediadatabase.git] / libfrontend / GNUmakefile
blobc14ca7614545f6e982723de83f876d274e5f1254
1 ##############################################################################
3 # $Id: GNUmakefile,v 1.3 2004/10/03 23:33:55 nedko Exp $
5 # DESCRIPTION:
6 # Makefile for libfrontend
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
22 SOURCES = conf.c disk.c db.c error.c helper.c
24 OBJECTS = $(SOURCES:%.c=%.o)
25 DEP_FILES = $(OBJECTS:.o=.d)
27 default: build
29 build: libfrontend.a
31 %.o:%.c
32 $(TOOL_PREFIX)echo "Compiling $< to $@ ..."
33 $(CC) $(CFLAGS) $< -o $@
35 %.d:%.c
36 @echo "Creating dependency file $@ for $<"
37 $(GENDEP_C)
39 libfrontend.a: $(OBJECTS)
40 $(ECHO) "Creating library $@"
41 $(TOOL_PREFIX)ar -rc $@ $(OBJECTS)
42 $(TOOL_PREFIX)ranlib $@
44 full_clean: clean
45 $(ECHO) "Removing dependency files ..."
46 $(RM_BEGIN) $(DEP_FILES) $(RM_END)
48 clean:
49 $(ECHO) "Cleaning ..."
50 $(RM_BEGIN) libfrontend.a $(RM_END)
51 $(RM_BEGIN) $(OBJECTS) $(RM_END)
53 rebuild: clean build
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.3 2004/10/03 23:33:55 nedko
70 # Move size helpers from gtk frontend
72 # Revision 1.2 2004/06/20 12:24:21 nedko
73 # Use dependency files.
74 # Use common tool variables.
76 # Revision 1.1 2004/05/16 19:01:17 nedko
77 # libfrontend holds code common to frontends but not in libdb.
79 ##############################################################################