Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # UNIX makefile for MIME++ example programs
  2. # $Revision: 1.1.1.1 $
  3. # $Date: 1998/04/29 05:06:27 $
  4. # C++ compiler driver
  5. # CXX = CC
  6. CXX = g++
  7. # C++ compiler flags (except -c, -I, -L, -l)
  8. #
  9. # Add -g here if you want debugger symbols included
  10. CXXFLAGS = -O
  11. # The search path for include files. Change only if necessary.
  12. INC_PATH = -I/usr/local/include
  13. # The search path for library files. Change only if necessary.
  14. LIB_PATH = -L/usr/local/lib
  15. # Libraries to be included. Change only if necessary.
  16. LIBS =
  17. # The library directory where MIME++ (libmimepp.a) will be installed.
  18. LIB_DIR = /usr/local/lib
  19. # The include directory where MIME++ include files should be installed.
  20. # The include files will actually be copied to $(INC_DIR)/mimepp/.
  21. INC_DIR = /usr/local/include
  22. all: exampl01 exampl02 exampl03 exampl04 exampl05
  23. exampl01 : libmimepp.a exampl01.o basicmsg.o
  24. $(CXX) -o exampl01 exampl01.o basicmsg.o $(LIB_PATH) -lmimepp $(LIBS)
  25. exampl02 : libmimepp.a exampl02.o basicmsg.o
  26. $(CXX) -o exampl02 exampl02.o basicmsg.o $(LIB_PATH) -lmimepp $(LIBS)
  27. exampl03 : libmimepp.a exampl03.o multipar.o basicmsg.o
  28. $(CXX) -o exampl03 exampl03.o multipar.o basicmsg.o $(LIB_PATH) -lmimepp $(LIBS)
  29. exampl04 : libmimepp.a exampl04.o multipar.o basicmsg.o
  30. $(CXX) -o exampl04 exampl04.o multipar.o basicmsg.o $(LIB_PATH) -lmimepp $(LIBS)
  31. exampl05 : libmimepp.a exampl05.o attach.o multipar.o basicmsg.o
  32. $(CXX) -o exampl05 exampl05.o attach.o multipar.o basicmsg.o $(LIB_PATH) -lmimepp $(LIBS)
  33. clean:
  34. -rm *.o exampl0? *.out
  35. .SUFFIXES: .cpp
  36. .cpp.o:
  37. $(CXX) -c $(CXXFLAGS) $< $(INC_PATH)