Parent Directory | Revision Log
Enable "make install" for desktop
1 | harbaum | 1 | # |
2 | # Copyright (C) 2008 Till Harbaum <till@harbaum.org>. | ||
3 | # | ||
4 | # This file is part of OSM2Go. | ||
5 | # | ||
6 | # OSM2Go is free software: you can redistribute it and/or modify | ||
7 | # it under the terms of the GNU General Public License as published by | ||
8 | # the Free Software Foundation, either version 3 of the License, or | ||
9 | # (at your option) any later version. | ||
10 | # | ||
11 | # OSM2Go is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License | ||
17 | # along with OSM2Go. If not, see <http://www.gnu.org/licenses/>. | ||
18 | # | ||
19 | |||
20 | APP = osm2go | ||
21 | PREFIX = /usr/local | ||
22 | |||
23 | PKGS = gtk+-2.0 libxml-2.0 goocanvas libcurl gthread-2.0 \ | ||
24 | gnome-vfs-module-2.0 | ||
25 | |||
26 | OBJS = main.o map.o osm.o osm_api.o wms.o \ | ||
27 | statusbar.o project.o settings.o pos.o diff.o map_hl.o \ | ||
28 | iconbar.o info.o icon.o track.o gps.o canvas_goocanvas.o \ | ||
29 | area_edit.o josm_presets.o relation_edit.o misc.o map_edit.o \ | ||
30 | harbaum | 39 | josm_elemstyles.o style.o net_io.o banner.o qnd_xml.o |
31 | harbaum | 1 | |
32 | harbaum | 41 | DEFS = -DPACKAGE=\"$(APP)\" -DPREFIX=\"$(PREFIX)\" -DUSE_GOOCANVAS |
33 | harbaum | 1 | CFLAGS = -Wall -O2 $(DEFS) `pkg-config --cflags $(PKGS)` |
34 | LDFLAGS = `pkg-config --libs $(PKGS)` | ||
35 | |||
36 | all: $(APP) | ||
37 | |||
38 | version.h: ../debian/changelog | ||
39 | awk '!/^$$/ { print "#define VERSION \"" $$2 "\"";exit }' $< | tr -d \(\) > $@ | ||
40 | |||
41 | %.o: %.c | ||
42 | gcc $(CFLAGS) -o $@ -c $< | ||
43 | |||
44 | $(APP): $(OBJS) | ||
45 | gcc $(LDFLAGS) -o $@ $(OBJS) | ||
46 | |||
47 | clean: | ||
48 | rm -f osm2go *.o *~ */*~ \#*\# version.h *.bak | ||
49 | |||
50 | harbaum | 41 | install: $(APP) |
51 | install $(APP) $(DESTDIR)$(PREFIX)/bin | ||
52 | |||
53 | harbaum | 5 | dep: version.h |
54 | harbaum | 1 | makedepend -Y *.c |
55 | |||
56 | # DO NOT DELETE | ||
57 | |||
58 | harbaum | 5 | area_edit.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h |
59 | area_edit.o: osm_api.h project.h statusbar.h area_edit.h settings.h diff.h | ||
60 | area_edit.o: iconbar.h icon.h info.h track.h gps.h wms.h josm_presets.h | ||
61 | area_edit.o: relation_edit.h misc.h map_edit.h josm_elemstyles.h style.h | ||
62 | area_edit.o: net_io.h | ||
63 | achadwick | 28 | banner.o: banner.h appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h |
64 | banner.o: osm_api.h project.h statusbar.h area_edit.h settings.h diff.h | ||
65 | banner.o: iconbar.h icon.h info.h track.h gps.h wms.h josm_presets.h | ||
66 | banner.o: relation_edit.h misc.h map_edit.h josm_elemstyles.h style.h | ||
67 | banner.o: net_io.h | ||
68 | harbaum | 5 | canvas_gnomecanvas.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h |
69 | canvas_gnomecanvas.o: osm_api.h project.h statusbar.h area_edit.h settings.h | ||
70 | canvas_gnomecanvas.o: diff.h iconbar.h icon.h info.h track.h gps.h wms.h | ||
71 | harbaum | 1 | canvas_gnomecanvas.o: josm_presets.h relation_edit.h misc.h map_edit.h |
72 | harbaum | 4 | canvas_gnomecanvas.o: josm_elemstyles.h style.h net_io.h |
73 | harbaum | 5 | canvas_goocanvas.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h |
74 | canvas_goocanvas.o: osm_api.h project.h statusbar.h area_edit.h settings.h | ||
75 | canvas_goocanvas.o: diff.h iconbar.h icon.h info.h track.h gps.h wms.h | ||
76 | harbaum | 1 | canvas_goocanvas.o: josm_presets.h relation_edit.h misc.h map_edit.h |
77 | harbaum | 4 | canvas_goocanvas.o: josm_elemstyles.h style.h net_io.h |
78 | harbaum | 5 | dbus.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h |
79 | dbus.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
80 | dbus.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
81 | dbus.o: map_edit.h josm_elemstyles.h style.h net_io.h | ||
82 | diff.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
83 | diff.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
84 | diff.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
85 | diff.o: map_edit.h josm_elemstyles.h style.h net_io.h | ||
86 | gps.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
87 | gps.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
88 | gps.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
89 | gps.o: map_edit.h josm_elemstyles.h style.h net_io.h | ||
90 | icon.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
91 | icon.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
92 | icon.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
93 | icon.o: map_edit.h josm_elemstyles.h style.h net_io.h | ||
94 | iconbar.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
95 | iconbar.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h | ||
96 | iconbar.o: icon.h info.h track.h gps.h wms.h josm_presets.h relation_edit.h | ||
97 | iconbar.o: misc.h map_edit.h josm_elemstyles.h style.h net_io.h | ||
98 | info.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
99 | info.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
100 | info.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
101 | info.o: map_edit.h josm_elemstyles.h style.h net_io.h | ||
102 | josm_elemstyles.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h | ||
103 | josm_elemstyles.o: osm_api.h project.h statusbar.h area_edit.h settings.h | ||
104 | josm_elemstyles.o: diff.h iconbar.h icon.h info.h track.h gps.h wms.h | ||
105 | josm_elemstyles.o: josm_presets.h relation_edit.h misc.h map_edit.h | ||
106 | josm_elemstyles.o: josm_elemstyles.h style.h net_io.h | ||
107 | josm_presets.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h | ||
108 | josm_presets.o: osm_api.h project.h statusbar.h area_edit.h settings.h diff.h | ||
109 | josm_presets.o: iconbar.h icon.h info.h track.h gps.h wms.h josm_presets.h | ||
110 | harbaum | 1 | josm_presets.o: relation_edit.h misc.h map_edit.h josm_elemstyles.h style.h |
111 | harbaum | 4 | josm_presets.o: net_io.h |
112 | harbaum | 5 | main.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h |
113 | main.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
114 | main.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
115 | achadwick | 28 | main.o: map_edit.h josm_elemstyles.h style.h net_io.h banner.h |
116 | harbaum | 5 | map.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h |
117 | map.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
118 | map.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
119 | map.o: map_edit.h josm_elemstyles.h style.h net_io.h | ||
120 | map_edit.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
121 | map_edit.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h | ||
122 | map_edit.o: icon.h info.h track.h gps.h wms.h josm_presets.h relation_edit.h | ||
123 | map_edit.o: misc.h map_edit.h josm_elemstyles.h style.h net_io.h | ||
124 | map_hl.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
125 | map_hl.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h | ||
126 | map_hl.o: icon.h info.h track.h gps.h wms.h josm_presets.h relation_edit.h | ||
127 | map_hl.o: misc.h map_edit.h josm_elemstyles.h style.h net_io.h | ||
128 | misc.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
129 | misc.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
130 | misc.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
131 | misc.o: map_edit.h josm_elemstyles.h style.h net_io.h | ||
132 | net_io.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
133 | net_io.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h | ||
134 | net_io.o: icon.h info.h track.h gps.h wms.h josm_presets.h relation_edit.h | ||
135 | net_io.o: misc.h map_edit.h josm_elemstyles.h style.h net_io.h | ||
136 | osm.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
137 | osm.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
138 | osm.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
139 | achadwick | 28 | osm.o: map_edit.h josm_elemstyles.h style.h net_io.h banner.h |
140 | harbaum | 5 | osm_api.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h |
141 | osm_api.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h | ||
142 | osm_api.o: icon.h info.h track.h gps.h wms.h josm_presets.h relation_edit.h | ||
143 | osm_api.o: misc.h map_edit.h josm_elemstyles.h style.h net_io.h | ||
144 | pos.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
145 | pos.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
146 | pos.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
147 | pos.o: map_edit.h josm_elemstyles.h style.h net_io.h | ||
148 | project.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
149 | project.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h | ||
150 | project.o: icon.h info.h track.h gps.h wms.h josm_presets.h relation_edit.h | ||
151 | achadwick | 28 | project.o: misc.h map_edit.h josm_elemstyles.h style.h net_io.h banner.h |
152 | harbaum | 5 | relation_edit.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h |
153 | relation_edit.o: osm_api.h project.h statusbar.h area_edit.h settings.h | ||
154 | relation_edit.o: diff.h iconbar.h icon.h info.h track.h gps.h wms.h | ||
155 | relation_edit.o: josm_presets.h relation_edit.h misc.h map_edit.h | ||
156 | relation_edit.o: josm_elemstyles.h style.h net_io.h | ||
157 | settings.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
158 | settings.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h | ||
159 | settings.o: icon.h info.h track.h gps.h wms.h josm_presets.h relation_edit.h | ||
160 | settings.o: misc.h map_edit.h josm_elemstyles.h style.h net_io.h | ||
161 | statusbar.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h | ||
162 | statusbar.o: osm_api.h project.h statusbar.h area_edit.h settings.h diff.h | ||
163 | statusbar.o: iconbar.h icon.h info.h track.h gps.h wms.h josm_presets.h | ||
164 | statusbar.o: relation_edit.h misc.h map_edit.h josm_elemstyles.h style.h | ||
165 | statusbar.o: net_io.h | ||
166 | style.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
167 | style.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
168 | style.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
169 | style.o: map_edit.h josm_elemstyles.h style.h net_io.h | ||
170 | track.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
171 | track.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
172 | track.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
173 | track.o: map_edit.h josm_elemstyles.h style.h net_io.h | ||
174 | wms.o: appdata.h version.h pos.h osm.h canvas.h map.h map_hl.h osm_api.h | ||
175 | wms.o: project.h statusbar.h area_edit.h settings.h diff.h iconbar.h icon.h | ||
176 | wms.o: info.h track.h gps.h wms.h josm_presets.h relation_edit.h misc.h | ||
177 | wms.o: map_edit.h josm_elemstyles.h style.h net_io.h |