backup commit, formerly hosted on now inaccessible CVS
This commit is contained in:
parent
316cc674e7
commit
f15f603035
57 changed files with 6014 additions and 0 deletions
70
Makefile
Normal file
70
Makefile
Normal file
|
@ -0,0 +1,70 @@
|
|||
#
|
||||
# Copyright (C) 2006 Nils Faerber <nils.faerber@kernelconcepts.de>
|
||||
#
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# 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 General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
# prefix for installation and search path (like icons)
|
||||
PREFIX = /usr/local/
|
||||
|
||||
# for normal desktop GTK+
|
||||
CCFLAGS = -Wall -O2 -g
|
||||
GTKCFLAGS = `pkg-config --cflags gtk+-2.0`
|
||||
|
||||
SQLITECFLAGS = `pkg-config --cflags sqlite3`
|
||||
|
||||
CFLAGS = $(CCFLAGS) $(GTKCFLAGS) $(SQLITECFLAGS)
|
||||
|
||||
#CLDFLAGS =
|
||||
GTKLDFLAGS = `pkg-config --libs gtk+-2.0`
|
||||
|
||||
SQLITELDFLAGS = `pkg-config --libs sqlite3`
|
||||
|
||||
## for Maemo/Hildon
|
||||
#CCFLAGS = -Wall -Os -g -DHILDON
|
||||
#GTKCFLAGS = `pkg-config --cflags gtk+-2.0` `pkg-config --cflags dbus-1`
|
||||
|
||||
#CFLAGS = $(CCFLAGS) $(GTKCFLAGS)
|
||||
|
||||
##CLDFLAGS =
|
||||
#GTKLDFLAGS = `pkg-config --libs gtk+-2.0` -lhildonlgpl -losso
|
||||
|
||||
|
||||
|
||||
# no need to change anything below this line
|
||||
# ------------------------------------------
|
||||
|
||||
.SUFFIXES: .d .c
|
||||
|
||||
CFLAGS += -MD -DPREFIX=\"$(PREFIX)\"
|
||||
LDFLAGS = $(CLDFLAGS) $(GTKLDFLAGS) $(SQLITELDFLAGS)
|
||||
|
||||
MAPPIX_MEMBERS = mappix mappix-ui mappix-trackdraw mappix-gpxreader geo-dist \
|
||||
mappix-trackedit mappix-trackrecord nmeap01 mappix-fileio \
|
||||
mappix-waypoints
|
||||
SOURCES = $(patsubst %,%.c,$(MAPPIX_MEMBERS))
|
||||
OBJS = $(patsubst %,%.o,$(MAPPIX_MEMBERS))
|
||||
DEPS = $(patsubst %,%.d,$(MAPPIX_MEMBERS))
|
||||
|
||||
all: mappix
|
||||
|
||||
mappix: $(OBJS)
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f *.o *.d mappix
|
||||
|
||||
-include $(DEPS)
|
Loading…
Add table
Add a link
Reference in a new issue