File: Makefile

package info (click to toggle)
vnc4 4.0-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 28,120 kB
  • ctags: 5,701
  • sloc: cpp: 16,749; ansic: 11,788; sh: 3,015; perl: 819; makefile: 370
file content (58 lines) | stat: -rw-r--r-- 1,248 bytes parent folder | download
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
# Generated automatically from Makefile.in:boilerplate.mk by configure.

SRCS = Image.cxx x0vncserver.cxx

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

program = x0vncserver

DEP_LIBS = ../rfb/librfb.a ../network/libnetwork.a ../rdr/librdr.a

EXTRA_LIBS = -lz  -lSM -lICE  -L/usr/X11R6/lib -lXtst -lXext -lX11 

DIR_CPPFLAGS = -I$(top_srcdir)  -I/usr/X11R6/include # X_CFLAGS are really CPPFLAGS

all:: $(program)

$(program): $(OBJS) buildtime.o $(DEP_LIBS)
	rm -f $(program)
	$(CXXLD) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) buildtime.o $(DEP_LIBS) $(LIBS) $(EXTRA_LIBS)

buildtime.o: $(OBJS) $(DEP_LIBS)

# followed by boilerplate.mk

all::
	@subdirs="$(SUBDIRS)"; for d in $$subdirs; do (cd $$d; $(MAKE) $@) || exit 1; done

clean::
	@subdirs="$(SUBDIRS)"; for d in $$subdirs; do (cd $$d; $(MAKE) $@) || exit 1; done

clean::
	rm -f $(program) $(library) *.o

SHELL = /bin/sh
top_srcdir = ..

CC = gcc
CFLAGS = -Wall -g -O2 -Wall $(DIR_CFLAGS)
CCLD = $(CC)
CXX = c++
CXXFLAGS = -O2 -Wall $(DIR_CXXFLAGS)
CXXLD = $(CXX)
CPPFLAGS = 
DEFS =  
ALL_CPPFLAGS = $(CPPFLAGS) $(DEFS) $(DIR_CPPFLAGS)
LIBS = 
LDFLAGS = 
RANLIB = ranlib
AR = ar cq

.SUFFIXES:
.SUFFIXES: .cxx .c .o

.c.o:
	$(CC) $(ALL_CPPFLAGS) $(CFLAGS) -c $<

.cxx.o:
	$(CXX) $(ALL_CPPFLAGS) $(CXXFLAGS) -c $<