1 ##############################################################################
3 # $Id: GNUmakefile,v 1.3 2004/10/03 23:33:55 nedko Exp $
6 # Makefile for libfrontend
9 # Nedko Arnaudov <nedko@users.sourceforge.net>
12 # GNU GENERAL PUBLIC LICENSE version 2
14 ##############################################################################
18 include $(PATHTOTOP
)common.mk
22 SOURCES
= conf.c disk.c db.c error.c helper.c
24 OBJECTS
= $(SOURCES
:%.c
=%.o
)
25 DEP_FILES
= $(OBJECTS
:.o
=.d
)
32 $(TOOL_PREFIX
)echo
"Compiling $< to $@ ..."
33 $(CC
) $(CFLAGS
) $< -o
$@
36 @echo
"Creating dependency file $@ for $<"
39 libfrontend.a
: $(OBJECTS
)
40 $(ECHO
) "Creating library $@"
41 $(TOOL_PREFIX
)ar -rc
$@
$(OBJECTS
)
42 $(TOOL_PREFIX
)ranlib
$@
45 $(ECHO
) "Removing dependency files ..."
46 $(RM_BEGIN
) $(DEP_FILES
) $(RM_END
)
49 $(ECHO
) "Cleaning ..."
50 $(RM_BEGIN
) libfrontend.a
$(RM_END
)
51 $(RM_BEGIN
) $(OBJECTS
) $(RM_END
)
55 # All object and dependency files depend on this file
56 $(OBJECTS
) $(DEP_FILES
): GNUmakefile
58 ifeq (,$(findstring clean,$(TARGET
)))
62 ##############################################################################
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 ##############################################################################