Commit 8113f77d authored by dscho's avatar dscho

added Makefile in examples; "export" in cvs_update_anonymously

parent 0f667408
if [ a"$1" = adiff ]; then if [ a"$1" = adiff -o a"$1" = aexport ]; then
cmd=diff cmd="$1"
shift shift
else else
cmd=update cmd=update
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment