# Add any required compiler flags C_FLAGS = -O2 -Wall -fomit-frame-pointer # Add any include directories, in the form -I. Some systems # apparently need -I/usr/local/include. Add it if rc2 barfs with a "not # found" error in rc2.c. INCLUDES = # This shouldn't need to be changed CC = gcc # Linker Flags - shouldn't be any problems. You might want to play with # libraries if you have real problems. LDFLAGS = # Base directory for installation. rc2/derc2 will go in BASEDIR/bin, librc2 # in BASEDIR/lib, and rc2.h into BASEDIR/include BASEDIR = /usr/local ############################################################### # # DON'T TOUCH BELOW THIS LINE # ############################################################### CFLAGS = $(C_FLAGS) $(INCLUDES) all: i_librc2 i_rc2 rc2: rc2.o cc -Wall rc2.o -lrc2 -o rc2 librc2: librc2.o ar rc librc2.a librc2.o ranlib librc2.a i_rc2: rc2 install -g root -o root -m 644 rc2 $(BASEDIR)/bin ln -s $(BASEDIR)/bin/rc2 $(BASEDIR)/bin/derc2 i_librc2: librc2 install -g root -o root -m 644 librc2.a $(BASEDIR)/lib install -g root -o root -m 644 rc2.h $(BASEDIR)/include clean: rm *.o rm *.a rm derc2 rm rc2