00001 LIBS = -lpthread -lsocket -lmalloc -lnsl -lrt -Wall -w -lC 00002 P = -lc -lthread ptmalloc.o 00003 INCLUDE= -I ~ -Wall 00004 CC = g++ -g 00005 DIR = /home/fred/ 00006 00007 tftp: TFTP.cpp libefence.a 00008 $(CC) $(LIBS) -I $(DIR) -o tftp445 TFTP.cpp libefence.a 00009 00010 2: TFTP.cpp libefence.a 00011 $(CC) $(LIBS) -I $(DIR) -o tftp2 TFTP.cpp libefence.a -D SHELL 00012 00013 t1: TFTP_Project.cpp 00014 $(CC) $(LIBS) -I $(DIR) -o tftp445 TFTP_Project.cpp 00015 00016 file: FileFactory.cpp 00017 $(CC) $(LIBS) -I $(DIR) -o file FileFactory.cpp 00018 00019 data: DataFactory.cpp 00020 $(CC) $(LIBS) -I $(DIR) -o data DataFactory.cpp 00021 00022 sock: UDP_all.cpp 00023 $(CC) $(LIBS) -I $(DIR) -o sock UDP_all.cpp 00024 00025 main : main.cpp TFTP.hpp 00026 $(CC) $(LIBS) -I $(DIR) -o tftp main.cpp 00027 00028 timer : TimerTest.cpp Timer* 00029 $(CC) $(LIBS) -I $(DIR) -o timer TimerTest.cpp 00030 00031 timeout : TFTP_Timeout.cpp TFTP* 00032 $(CC) $(LIBS) -I $(DIR) -o timeout TFTP_Timeout.cpp 00033 00034 parser : TFTP_Parser.cpp TFTP* 00035 $(CC) $(LIBS) -I $(DIR) -o parser TFTP_Parser.cpp 00036 00037 sender : TFTP_Sender.cpp TFTP* 00038 $(CC) $(LIBS) -I $(DIR) -o parser TFTP_Sender.cpp 00039 00040 packet : TFTP_Packet.cpp TFTP* 00041 $(CC) $(LIBS) -I $(DIR) -o packet TFTP_Packet.cpp 00042 00043 option : TFTP_Option.cpp TFTP* 00044 $(CC) $(LIBS) -I $(DIR) -o option TFTP_Option.cpp 00045 00046 optionsaved : TFTP_OptionSaved.cpp TFTP* 00047 $(CC) $(LIBS) -I $(DIR) -o option TFTP_OptionSaved.cpp 00048 00049 dataack : TFTP_DataAck.cpp TFTP* 00050 $(CC) $(LIBS) -I $(DIR) -o data TFTP_DataAck.cpp 00051 00052 clean: 00053 rm test 00054 00055 timer : TimerTest.cpp 00056 $(CC) $(LIBS) -I $(DIR) -o test TimerTest.cpp 00057 00058 basic : Basic_Test.cpp 00059 $(CC) $(LIBS) -I $(DIR) -o test Basic_Test.cpp 00060 00061 lock : LockTest.cpp 00062 $(CC) $(LIBS) -I $(DIR) -o test LockTest.cpp 00063 00064 pthread : PThread_Test.cpp 00065 $(CC) $(LIBS) -I $(DIR) -o test PThread_Test.cpp 00066 00067 file : FileTest.cpp 00068 $(CC) $(LIBS) -I $(DIR) -o test FileTest.cpp 00069 00070 bit : BitVectorTest.cpp 00071 $(CC) $(LIBS) -I $(DIR) -o test BitVectorTest.cpp 00072 00073 flag : FlagTest.cpp 00074 $(CC) $(LIBS) -I $(DIR) -o test FlagTest.cpp 00075 00076 serial : SerializeTest.cpp 00077 $(CC) $(LIBS) -I $(DIR) -o test SerializeTest.cpp 00078 00079 time : TimeTest.cpp 00080 $(CC) $(LIBS) -I $(DIR) -o test TimeTest.cpp 00081 00082 vector : VectorTest.cpp 00083 $(CC) $(LIBS) -I $(DIR) -o test VectorTest.cpp 00084 00085 array : ArrayTst.cpp 00086 $(CC) $(LIBS) -I $(DIR) -o test ArrayTst.cpp 00087 00088 ANSI : ANSI_Test.cpp 00089 $(CC) $(LIBS) -I $(DIR) -o test ANSI_Test.cpp 00090 00091 Error : ErrorTest.cpp 00092 $(CC) $(LIBS) -I $(DIR) -o test ErrorTest.cpp 00093 00094 Lang : LangTest.cpp 00095 $(CC) $(LIBS) -I $(DIR) -o test LangTest.cpp 00096 00097 Int : IntTest.cpp 00098 $(CC) $(LIBS) -I $(DIR) -o test IntTest.cpp 00099 00100 LZH : LZH_Test.cpp 00101 $(CC) $(LIBS) -I $(DIR) -o test LZH_Test.cpp 00102 00103 Util : UtilTest.cpp 00104 $(CC) $(LIBS) -I $(DIR) -o test UtilTest.cpp 00105 00106 Str : StrTest.cpp 00107 $(CC) $(LIBS) -I $(DIR) -o test StrTest.cpp 00108 00109 Str2 : StrTest2.cpp 00110 $(CC) $(LIBS) -I $(DIR) -o test StrTest2.cpp 00111