File: Makefile

package info (click to toggle)
teleport 0.34-4
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 124 kB
  • ctags: 87
  • sloc: ansic: 757; makefile: 43
file content (49 lines) | stat: -rw-r--r-- 1,328 bytes parent folder | download | duplicates (3)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PREFIX = /usr/local
PACKAGE = teleport
DEBUG = yes
CVSBUILD = no
VERSION = 0.34

LINGUAS = 

PACKAGE_CPPFLAGS += $(STANDARD_CPPFLAGS)
PACKAGE_CFLAGS += $(STANDARD_CFLAGS) $(GPECFLAGS) `libgcrypt-config --cflags`
PACKAGE_LDFLAGS += $(STANDARD_LDFLAGS) $(GPELIBS) `libgcrypt-config --libs` -lsqlite

MEMBERS = teleport crypt displays dm-crypt keygen
KG_MEMBERS = tp-keygen keygen

DEPS = $(patsubst %,%.d,$(MEMBERS) $(KG_MEMBERS))
OBJS = $(patsubst %,%.o,$(MEMBERS))
KG_OBJS = $(patsubst %,%.o,$(KG_MEMBERS))
SOURCES = $(patsubst %,%.c,$(MEMBERS) $(KG_MEMBERS))

ifeq ($(CVSBUILD),yes)
BUILD = ../build
else
BUILD = build
endif

all: teleport all-mo tp-keygen

teleport: $(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS) $(PACKAGE_LDFLAGS)

tp-keygen: $(KG_OBJS)
	$(CC) -o $@ $^ $(LDFLAGS) $(PACKAGE_LDFLAGS)

clean:
	rm -f teleport tp-keygen $(OBJS) $(DEPS) $(KG_OBJS)

install-program: all
	install -d $(DESTDIR)$(PREFIX)/bin
	install -s teleport $(DESTDIR)$(PREFIX)/bin/
	install -s tp-keygen $(DESTDIR)$(PREFIX)/bin/
	install -d $(DESTDIR)$(PREFIX)/share/pixmaps
	install -m 644 teleport.png $(DESTDIR)$(PREFIX)/share/pixmaps
	install -d $(DESTDIR)$(PREFIX)/share/applications
	install -m 644 teleport.desktop $(DESTDIR)$(PREFIX)/share/applications

include $(BUILD)/Makefile.translation
include $(BUILD)/Makefile.dpkg_ipkg
-include $(DEPS)