Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1 | |
Constantin Kaplinsky | e179b5a | 2006-02-17 09:30:21 +0000 | [diff] [blame^] | 2 | SRCS = Image.cxx TimeMillis.cxx PollingScheduler.cxx PollingManager.cxx \ |
| 3 | x0vncserver.cxx |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4 | |
| 5 | OBJS = $(SRCS:.cxx=.o) |
| 6 | |
| 7 | program = x0vncserver |
| 8 | |
| 9 | DEP_LIBS = ../rfb/librfb.a ../network/libnetwork.a ../rdr/librdr.a |
| 10 | |
Constantin Kaplinsky | d397b77 | 2005-09-09 12:17:32 +0000 | [diff] [blame] | 11 | EXTRA_LIBS = @ZLIB_LIB@ @JPEG_LIB@ @INET_LIB@ @X_PRE_LIBS@ @X_LIBS@ \ |
| 12 | @XTEST_LIB@ -lXext -lX11 @X_EXTRA_LIBS@ |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 13 | |
Constantin Kaplinsky | d397b77 | 2005-09-09 12:17:32 +0000 | [diff] [blame] | 14 | # X_CFLAGS are really CPPFLAGS |
| 15 | DIR_CPPFLAGS = -I$(top_srcdir) \ |
| 16 | @XTEST_DEFINE@ @READDISPLAY_DEFINE@ @MITSHM_DEFINE@ @X_CFLAGS@ |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 17 | |
| 18 | all:: $(program) |
| 19 | |
| 20 | $(program): $(OBJS) buildtime.o $(DEP_LIBS) |
| 21 | rm -f $(program) |
| 22 | $(CXXLD) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) buildtime.o $(DEP_LIBS) $(LIBS) $(EXTRA_LIBS) |
| 23 | |
| 24 | buildtime.o: $(OBJS) $(DEP_LIBS) |
| 25 | |
| 26 | # followed by boilerplate.mk |