1 # Generated automatically from Makefile.in:boilerplate.mk by configure.
3 V3FB_DIR = ../../palacios/linux_usr
5 SRCS = Image.cxx x0vncserver.cxx
7 OBJS = $(SRCS:.cxx=.o) $(CSRCS:.c=.o)
11 DEP_LIBS = ../rfb/librfb.a ../network/libnetwork.a ../rdr/librdr.a
13 EXTRA_LIBS = $(top_srcdir)/zlib/libz.a -L/usr/lib64 $(top_srcdir)/Xregion/libXregion.a $(top_srcdir)/xlib/libX11.a $(top_srcdir)/xlib/libSM.a $(top_srcdir)/xlib/libICE.a $(top_srcdir)/xlib/libXtst.a $(top_srcdir)/xlib/libXext.a -L$(V3FB_DIR) -lv3_fb # -lX11 -lSM -lICE -lXtst -lXext
15 DIR_CPPFLAGS = -I$(top_srcdir) -I$(V3FB_DIR) # X_CFLAGS are really CPPFLAGS
19 $(program): $(OBJS) buildtime.o $(DEP_LIBS)
21 $(CXXLD) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) buildtime.o $(DEP_LIBS) $(LIBS) $(EXTRA_LIBS)
23 buildtime.o: $(OBJS) $(DEP_LIBS)
25 # followed by boilerplate.mk
28 @subdirs="$(SUBDIRS)"; for d in $$subdirs; do (cd $$d; $(MAKE) $@) || exit 1; done
31 @subdirs="$(SUBDIRS)"; for d in $$subdirs; do (cd $$d; $(MAKE) $@) || exit 1; done
34 rm -f $(program) $(library) *.o
40 CFLAGS = -g $(DIR_CFLAGS) #-O2 -Wall
43 CXXFLAGS = -g #-O2 -Wall
47 ALL_CPPFLAGS = $(CPPFLAGS) $(DEFS) $(DIR_CPPFLAGS)
49 LDFLAGS = --whole-archive --static
57 $(CC) $(ALL_CPPFLAGS) $(CFLAGS) -c $<
60 $(CXX) $(ALL_CPPFLAGS) $(CXXFLAGS) -c $<