~onli/simdock/master

22 by onli
Replace autoconf-buildsystem with pkg-config/Makefile
1
PREFIX ?= /usr
2
DESTDIR ?=
3
BINDIR ?= $(PREFIX)/bin
4
APPDIR ?= $(PREFIX)/share/simdock
5
ICONDIR ?= $(PREFIX)/share/pixmaps
6
SRCDIR ?= src/
7
8
SHELL ?= /bin/sh
30 by onli
Make it compile on Ubuntu 14.04-64
9
CC = g++
22 by onli
Replace autoconf-buildsystem with pkg-config/Makefile
10
CCFLAGS ?= -O2
30 by onli
Make it compile on Ubuntu 14.04-64
11
LDLIBS ?= -lX11
22 by onli
Replace autoconf-buildsystem with pkg-config/Makefile
12
DEPS = $(shell pkg-config --libs --cflags glib-2.0 gconf-2.0 gtk+-2.0 libwnck-1.0)
13
DEPS += $(shell wx-config --cflags --libs)
14
15
.PHONY: install uninstall
16
17
all:
18
	$(CC) $(CCFLAGS) $(SRCDIR)*.cc $(DEPS) $(LDLIBS) -o simdock
19
20
install: 
21
	@install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(APPDIR)" "$(DESTDIR)$(ICONDIR)"
22
	@install -m 0755 -v simdock "$(DESTDIR)$(BINDIR)/simdock"
23
	@install -m 0644 -v gfx/* "$(DESTDIR)$(APPDIR)/"
24
	@install -m 0644 -v gfx/simdock.png "$(DESTDIR)$(ICONDIR)/"
25
26
uninstall:
27
	@rm -vf "$(DESTDIR)$(BINDIR)/simdock" "$(DESTDIR)$(APPDIR)/*" "$(DESTDIR)$(ICONDIR)/simdock.png"