File: Makefile.in

package info (click to toggle)
dxpc 3.9.2-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,164 kB
  • ctags: 1,252
  • sloc: cpp: 12,036; sh: 2,823; makefile: 77
file content (95 lines) | stat: -rw-r--r-- 2,479 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
CXX      = @CXX@
CXXFLAGS = @CXXFLAGS@ @DEFS@
LDFLAGS  = @LDFLAGS@
LIBS     = @LIBS@ @X_LIBS@ @X_EXTRA_LIBS@
EXEEXT   = @EXEEXT@
MINGW32  = @MINGW32@

srcdir      = @srcdir@
prefix      = @prefix@
exec_prefix = @exec_prefix@
bindir      = @bindir@
man1dir     = @mandir@/man1
VPATH       = @srcdir@

INSTALL         = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA    = @INSTALL_DATA@

.SUFFIXES:	.C

# We may have separate source and binary trees -- make sure we can find
# dxpcconf.h
CPPFLAGS = -I.

.C.o:
	$(CXX) $(CPPFLAGS) -c $(CXXFLAGS) $<

TARGET=	dxpc$(EXEEXT)

# The mingw build results in two targets, the console mode and windows mode
# app.
ifeq ($(MINGW32),true)
SECONDTARGET = dxpc-win32$(EXEEXT)
else
SECONDTARGET =
endif

all: $(TARGET) $(SECONDTARGET)

pure: pure_$(TARGET)
quantify: quant_$(TARGET)

SRCS=	main.C util.C constants.C Stats.C \
	Multiplexer.C ClientMultiplexer.C ServerMultiplexer.C \
	ClientChannel.C ServerChannel.C ReadBuffer.C \
	ProxyReadBuffer.C ClientReadBuffer.C ServerReadBuffer.C \
	EncodeBuffer.C DecodeBuffer.C WriteBuffer.C \
	IntCache.C CharCache.C PixelCache.C HuffmanCoder.C \
	ClientCache.C ServerCache.C \
	TextCompressor.C LastPixels.C SequenceNumQueue.C \
	BlockCache.C BlockCacheSet.C Compresser.C Decompresser.C

OBJS=	$(SRCS:.C=.o)

$(TARGET):	$(OBJS)
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)

ifeq ($(MINGW32),true)
$(SECONDTARGET): $(OBJS)
	$(CXX) -mwindows $(CPPFLAGS) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
endif

pure_$(TARGET):	$(OBJS)
	purify $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)

quant_$(TARGET):	$(OBJS) $(OBJS)
	quantify $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)

depends:
	makedepend -f Makefile $(SRCS)

install: install.bin install.man

install.bin:	$(TARGET)
	$(srcdir)/mkinstalldirs $(bindir)
	$(INSTALL) $(TARGET) $(bindir)/$(TARGET)

install.man:
	$(srcdir)/mkinstalldirs $(man1dir)
	$(INSTALL_DATA) $(TARGET).man $(man1dir)/$(TARGET).1

clean:
	-rm -f *~ *.o $(TARGET) pure_* quant_* *.bak core gmon.out

distclean: clean
	-rm -f config.status config.log config.cache Makefile tags dxpcconf.h
	-rm -rf autom4te.cache

# gnu indent v2.2.9 has a nasty bug whereby a const method ends up with a
# "const const" modifier.
indent:
	indent -bad -bap -bl -bli0 -cdw -i4 -npcs -npsl -nut -ppi1 *.C *.H
	for f in *.C *.H; do sed "s/const const/const/" $$f >$$f.fixed.$$$$ && cp $$f.fixed.$$$$ $$f; done
	rm -f *.fixed.$$$$