File: Makefile.am

package info (click to toggle)
xstow 1.0.0-2.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,160 kB
  • ctags: 1,216
  • sloc: cpp: 7,218; sh: 1,194; makefile: 196; awk: 26
file content (99 lines) | stat: -rw-r--r-- 1,744 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
if ENABLE_MERGE

MERGE_INFO=merge-info

endif

if ENABLE_STATIC

bin_PROGRAMS=xstow xstow-static xstow-stow $(MERGE_INFO)

else

bin_PROGRAMS=xstow $(MERGE_INFO)

endif

xstow_SOURCES=\
	arg.cpp \
	arg.h \
	cppdir.cpp \
	cppdir.h \
	debug.h \
	debug.cpp \
	file_option.cpp \
	file_option.h \
	format.cpp \
	format.h \
	iterator.h \
	main.cpp \
	ref.h \
	setup.h \
	setup.cpp \
	string_utils.cpp \
	string_utils.h \
	tree.cpp \
	tree.h \
	leoini.h \
	leoini.cpp \
	local_config.h \
	setup_config.h \
	setup_config.cpp \
	nignore.cpp \
	nignore.h \
	copy.cpp \
	range.h \
	backtrace.h \
	backtrace.cpp

xstow_LDFLAGS= $(LDFLAGS) $(LDFLAGS_DYNAMIC)
LDADD = $(LDFLAGS_DYNAMIC)

if ENABLE_MERGE

merge_info_SOURCES= merge_info.cpp \
			arg.cpp arg.h \
			file_option.cpp file_option.h \
			cppdir.cpp cppdir.h \
			string_utils.cpp string_utils.h \
			debug.cpp debug.h  \
			local_config.h \
			format.cpp format.h \
			ref.h \
			range.h \
			backtrace.h \
			backtrace.cpp

merge_info_LDFLAGS= $(LDFLAGS) $(LDFLAGS_DYNAMIC)

endif

if ENABLE_STATIC

xstow_static_SOURCES= $(xstow_SOURCES)
xstow_static_LDFLAGS= -static
xstow_static_CXXFLAGS= $(CXXFLAGS) -DSTATIC_COMPILE

xstow_stow_SOURCES= $(xstow_SOURCES)
xstow_stow_LDFLAGS= -static
xstow_stow_CXXFLAGS= $(CXXFLAGS) -DSTATIC_COMPILE -DGNU_STOW

endif

DEFAULT_INCLUDES= -I$(top_builddir)

xstow-mini.o: $(xstow_SOURCES)
	cat $(xstow_SOURCES) > all.cc ; \
	$(CXX) -c -o xstow-mini.o \
	-DSTATIC_COMPILE -DGNU_STOW -DHAVE_CONFIG_H -DNDEBUG \
	$(DEFAULT_INCLUDES) -fno-default-inline -O2 \
	all.cc 


xstow-mini: xstow-mini.o
	$(CXX) -o xstow-mini xstow-mini.o ; \
	strip xstow-mini

xstow-mini-static: xstow-mini.o
	$(CXX) -o xstow-mini-static xstow-mini.o -static ; \
	strip xstow-mini-static