localhost rdesktop-1.0.0 $ pico Makefile UW PICO(tm) 2.3 File: Makefile Modified
##############################################
# rdesktop: A Remote Desktop Protocol client #
# Basic Makefile #
# Copyright (C) Matthew Chapman 1999-2000 #
##############################################
# Uncomment to enable debugging
# DEBUG = -g -DRDP_DEBUG
CC = gcc
CFLAGS = -O2 -Wall $(DEBUG) -I/usr/X11R6/include -no-cpp-precomp
LIBS = -L/usr/X11R6/lib -lX11
RDPOBJ = rdesktop.o tcp.o iso.o mcs.o secure.o licence.o rdp.o orders.o bitmap.$
CRYPTOBJ = crypto/rc4_enc.o crypto/rc4_skey.o crypto/md5_dgst.o crypto/sha1dgst$
rdesktop: $(RDPOBJ) $(CRYPTOBJ)
$(CC) $(CFLAGS) -o rdesktop $(LIBS) $(RDPOBJ) $(CRYPTOBJ)
[ Wrote 30 lines ]
localhost rdesktop-1.0.0 $ make
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o rdesktop.o -c rdesktop.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o tcp.o -c tcp.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o iso.o -c iso.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o mcs.o -c mcs.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o secure.o -c secure.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o licence.o -c licence.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o rdp.o -c rdp.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o orders.o -c orders.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o bitmap.o -c bitmap.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o cache.o -c cache.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o xwin.o -c xwin.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o crypto/rc4_enc.o -c crypto/rc4_enc.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o crypto/rc4_skey.o -c crypto/rc4_skey.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o crypto/md5_dgst.o -c crypto/md5_dgst.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o crypto/sha1dgst.o -c crypto/sha1dgst.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o crypto/arith.o -c crypto/arith.c
gcc -O2 -Wall -I/usr/X11R6/include -no-cpp-precomp -o rdesktop -L/usr/X11R6/lib -lX11 rdesktop.o tcp.o iso.o mcs.o secure.o licence.o rdp.o orders.o bitmap.o cache.o xwin.o crypto/rc4_enc.o crypto/rc4_skey.o crypto/md5_dgst.o crypto/sha1dgst.o crypto/arith.o
localhost rdesktop-1.0.0 $ ls
COPYING cache.o licence.c orders.h rdesktop.c secure.c xwin.c
Makefile constants.h licence.o orders.o rdesktop.h secure.o xwin.o
bitmap.c crypto mcs.c parse.h rdesktop.o tcp.c
bitmap.o iso.c mcs.o proto.h rdp.c tcp.o
cache.c iso.o orders.c rdesktop rdp.o types.h
localhost rdesktop-1.0.0 $ ./rdesktop
rdesktop: A Remote Desktop Protocol client.
Version 1.0.0. Copyright (C) 1999-2000 Matt Chapman.
See http://www.rdesktop.org/ for more information.
Usage: ./rdesktop [options] server
-u: user name
-d: domain
-s: shell
-c: working directory
-p: password (autologon)
-n: client hostname
-w: desktop width
-h: desktop height
-k: keyboard layout (hex)
-b: force bitmap updates
-m: do not send motion events
-l: do not request licence
localhost rdesktop-1.0.0 $