makefile.in
2.07 KB
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
# makefile for SCLITE
#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CXX@
INSTALL = @INSTALL@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
# Some System V machines do not come with libPW.
# If this is true for you, use the GNU alloca.o here.
prefix = @prefix@
exec_prefix = @exec_prefix@
edit_program_name = sed '@program_transform_name@'
bindir = $(exec_prefix)/bin
mandir =$(prefix)/man
man1dir =$(mandir)/man1
man5dir = $(mandir)/man5
infodir = $(prefix)/info
DEFAULT_EDITOR_PROGRAM = ed
NULL_DEVICE = /dev/null
PR_PROGRAM = /bin/pr
#### End of system configuration section. ####
SHELL = /bin/sh
######################################################################
# The source files for all of the programs.
src_c = $(wildcard *.cpp) $(filter-out ../core/main.cpp, $(wildcard ../core/*.cpp ../core/*.c ../core/lzma/*.c))
######################################################################
# The Object files for all of the library code.
src_o := $(src_c:%.cc=%.o)
src_o := $(src_o:%.cpp=%.o)
src_o := $(src_o:%.c=%.o)
PROGRAMS = asclite_test
######################################################################
all: makefile $(PROGRAMS)
COMPILE = $(CC) -c $(OFLAGS) $(DEFS) -I. -I../core $(CFLAGS)
.cpp.o:
$(COMPILE) $<
asclite_test: $(src_o)
$(CXX) -o $@ $(CFLAGS) $(LDFLAGS) $(src_o) $(LIBS)
clean:
rm -f *.o $(PROGRAMS) core.*
install:
mostlyclean: clean
distclean: clean
rm -rf *~ config.status config.log config.cache config.h makefile
realclean: distclean
rm -f TAGS *.info*
check:
./asclite_test -d ../testfiles
config.sh: config.in
autoconf config.in | sed 's/Makefile/makefile/g' > config.sh
# autoheader might not change config.hin.
config.hin: stamp-h.in
stamp-h.in: config.in
cd $(srcdir) && autoheader
date > $(srcdir)/stamp-h.in
config.status: config.sh
./config.status --recheck
# config.status might not change config.h, but it changes stamp-h.
makefile: makefile.in config.status
./config.status
# Prevent GNU make v3 from overflowing arg limit on SysV.
.NOEXPORT: