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 \ |
Constantin Kaplinsky | a1d2cef | 2006-04-17 08:46:22 +0000 | [diff] [blame^] | 3 | x0vncserver.cxx ../vncconfig/QueryConnectDialog.cxx |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4 | |
| 5 | OBJS = $(SRCS:.cxx=.o) |
| 6 | |
| 7 | program = x0vncserver |
| 8 | |
Constantin Kaplinsky | a1d2cef | 2006-04-17 08:46:22 +0000 | [diff] [blame^] | 9 | DEP_LIBS = ../rfb/librfb.a \ |
| 10 | ../network/libnetwork.a \ |
| 11 | ../rdr/librdr.a \ |
| 12 | ../tx/libtx.a |
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 | EXTRA_LIBS = @ZLIB_LIB@ @JPEG_LIB@ @INET_LIB@ @X_PRE_LIBS@ @X_LIBS@ \ |
| 15 | @XTEST_LIB@ -lXext -lX11 @X_EXTRA_LIBS@ |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 16 | |
Constantin Kaplinsky | d397b77 | 2005-09-09 12:17:32 +0000 | [diff] [blame] | 17 | # X_CFLAGS are really CPPFLAGS |
Constantin Kaplinsky | a1d2cef | 2006-04-17 08:46:22 +0000 | [diff] [blame^] | 18 | DIR_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/tx -I$(top_srcdir)/vncconfig \ |
Constantin Kaplinsky | d397b77 | 2005-09-09 12:17:32 +0000 | [diff] [blame] | 19 | @XTEST_DEFINE@ @READDISPLAY_DEFINE@ @MITSHM_DEFINE@ @X_CFLAGS@ |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 20 | |
| 21 | all:: $(program) |
| 22 | |
| 23 | $(program): $(OBJS) buildtime.o $(DEP_LIBS) |
| 24 | rm -f $(program) |
| 25 | $(CXXLD) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) buildtime.o $(DEP_LIBS) $(LIBS) $(EXTRA_LIBS) |
| 26 | |
| 27 | buildtime.o: $(OBJS) $(DEP_LIBS) |
| 28 | |
| 29 | # followed by boilerplate.mk |