diff options
author | dscho <dscho> | 2003-02-07 19:01:10 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-02-07 19:01:10 +0000 |
commit | 8113f77d88a82cf957621277748c0107a1890b24 (patch) | |
tree | f305bc9c8704d9f3b2b1d4cee83ed067db747dd2 | |
parent | 0f66740881b7b6f468c46dc10e6694520b3ab2d8 (diff) | |
download | libtdevnc-8113f77d88a82cf957621277748c0107a1890b24.tar.gz libtdevnc-8113f77d88a82cf957621277748c0107a1890b24.zip |
added Makefile in examples; "export" in cvs_update_anonymously
-rw-r--r-- | cvs_update_anonymously | 4 | ||||
-rw-r--r-- | examples/Makefile | 50 |
2 files changed, 52 insertions, 2 deletions
diff --git a/cvs_update_anonymously b/cvs_update_anonymously index 47bfab3..9bdd325 100644 --- a/cvs_update_anonymously +++ b/cvs_update_anonymously @@ -1,5 +1,5 @@ -if [ a"$1" = adiff ]; then - cmd=diff +if [ a"$1" = adiff -o a"$1" = aexport ]; then + cmd="$1" shift else cmd=update diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..c2de7ae --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,50 @@ +CFLAGS=-I. -I../include +VNCSERVERLIB=-L.. -lvncserver -L/usr/local/lib -lz -ljpeg -lpthread +LDFLAGS=$(VNCSERVERLIB) +ifdef CXX +LINK=$(CXX) +else +LINK=$(CC) +endif + +all: example pnmshow sratest blooptest pnmshow24 fontsel vncev storepasswd + +example: example.o ../libvncserver.a + $(LINK) -o example example.o $(LDFLAGS) + +pnmshow: pnmshow.o ../libvncserver.a + $(LINK) -o pnmshow pnmshow.o $(LDFLAGS) + +mac.o: mac.c 1instance.c + +OSXvnc-server: mac.o ../libvncserver.a + $(LINK) -o OSXvnc-server mac.o $(LDFLAGS) $(OSX_LIBS) + +storepasswd: storepasswd.o + $(LINK) -o storepasswd storepasswd.o $(LDFLAGS) + +sratest: sratest.o + $(LINK) -o sratest sratest.o + +sratest.o: ../sraRegion.c + $(CC) $(CFLAGS) -DSRA_TEST -c -o sratest.o ../sraRegion.c + +blooptest: blooptest.o ../libvncserver.a + $(LINK) -o blooptest blooptest.o $(LDFLAGS) + +blooptest.o: example.c + $(CC) $(CFLAGS) -DBACKGROUND_LOOP_TEST -c -o blooptest.o example.c + +pnmshow24: pnmshow24.o ../libvncserver.a + $(LINK) -o pnmshow24 pnmshow24.o $(LDFLAGS) + +fontsel: fontsel.o ../libvncserver.a + $(LINK) -o fontsel fontsel.o $(LDFLAGS) + +vncev: vncev.o ../libvncserver.a + $(LINK) -o vncev vncev.o $(LDFLAGS) + +pnmshow24.o pnmshow.o example.o mac.o blooptest.o: Makefile ../include/rfb.h + +clean: + rm -f $(OBJS) *~ core "#"* *.bak *.orig |