File: Makefile

package info (click to toggle)
sosi2osm 1.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 228 kB
  • sloc: cpp: 442; makefile: 24; sh: 11
file content (27 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
PROGNAME=sosi2osm
OBJFILES=sosi2osm.o sosi.o tag.o node.o

CPPFLAGS := $(CPPFLAGS) `pkg-config --cflags lua5.1-c++ fyba` -DLINUX -DUNIX -g
LDFLAGS := $(LDFLAGS) -lproj `pkg-config --libs lua5.1-c++ fyba`

all: $(PROGNAME)

clean:
	$(RM) $(PROGNAME) $(OBJFILES) *~

$(PROGNAME): $(OBJFILES)
	$(CXX) $^ $(LDFLAGS) -o $@

install: sosi2osm
	mkdir -p $(DESTDIR)/usr/bin
	install -m 0755 sosi2osm $(DESTDIR)/usr/bin
	mkdir -p $(DESTDIR)/usr/share/sosi2osm/lua
	install -m 0644 lua/*.lua $(DESTDIR)/usr/share/sosi2osm/lua

uninstall:
	rm $(DESTDIR)/usr/share/sosi2osm/lua/*.lua
	rmdir $(DESTDIR)/usr/share/sosi2osm/lua
	rmdir $(DESTDIR)/usr/share/sosi2osm
	rm $(DESTDIR)/usr/bin/sosi2osm

.PHONY: install uninstall clean all