bdf2c/Makefile

70 lines
1.6 KiB
Makefile
Raw Normal View History

2009-01-23 10:17:49 +00:00
#
2010-09-24 14:55:01 +00:00
# @file Makefile @brief bdf2c - converts bdf font files into C files
2009-01-23 10:17:49 +00:00
#
2010-09-24 14:55:01 +00:00
# Copyright (c) 2009, 2010 by Lutz Sammer. All Rights Reserved.
2009-01-23 10:17:49 +00:00
#
# Contributor(s):
#
# License: AGPLv3
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
2009-02-16 10:53:33 +00:00
# $Id$
2009-01-23 10:17:49 +00:00
CC = gcc
LIBS =
CFLAGS = -Os -Werror -W -Wall
LDFLAGS =
OBJS = bdf2c.o
HDRS =
2010-09-24 14:55:01 +00:00
FILES = Makefile AGPL-3.0.txt README.txt Changlog.txt
2009-01-23 10:17:49 +00:00
all: bdf2c
2010-09-24 14:55:01 +00:00
$(OBJS): $(HDRS) Makefile
2009-01-23 10:17:49 +00:00
2010-09-24 14:55:01 +00:00
bdf2c: $(OBJS)
2009-01-23 10:17:49 +00:00
$(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^ $(LIBS)
#----------------------------------------------------------------------------
# Developer tools
2010-09-24 14:55:01 +00:00
doc: $(SRCS) $(HDRS) bdf2c.doxyfile
(cat bdf2c.doxyfile; \
echo 'PROJECT_NUMBER=${VERSION} $(if $(GIT_REV), (GIT-$(GIT_REV)))') \
| doxygen -
2009-01-23 10:17:49 +00:00
indent:
for i in $(OBJS:.o=.c) $(HDRS); do \
indent $$i; unexpand -a $$i > $$i.up; mv $$i.up $$i; \
done
2010-09-24 14:55:01 +00:00
clean:
-rm *.o *~
clobber: clean
-rm bdf2c
dist:
tar cjCf .. bdf2c-`date +%F-%H`.tar.bz2 \
$(addprefix bdf2c/, $(FILES) $(OBJS:.o=.c))
install:
strip --strip-unneeded -R .comment bdf2c
install -s bdf2c /usr/local/bin/
2009-01-23 10:17:49 +00:00
commit:
2010-09-24 14:55:01 +00:00
git commit $(OBJS:.o=.c) $(HDRS) $(FILES)
2009-01-23 10:17:49 +00:00
2010-09-24 14:55:01 +00:00
help:
@echo "make all|doc|indent|clean|clobber|dist|install|help"