1997-09-23 11:09:33 +00:00
|
|
|
# UNIX makefile for MIME++ example programs
|
|
|
|
|
|
|
|
# $Revision: 3.0 $
|
|
|
|
# $Date: 1997-07-28 06:59:15-05 $
|
1997-07-08 10:08:50 +00:00
|
|
|
|
|
|
|
# C++ compiler driver
|
1997-09-23 11:09:33 +00:00
|
|
|
# CXX = CC
|
1997-07-08 10:08:50 +00:00
|
|
|
CXX = g++
|
|
|
|
|
|
|
|
# C++ compiler flags (except -c, -I, -L, -l)
|
1997-09-23 11:09:33 +00:00
|
|
|
#
|
1997-07-08 10:08:50 +00:00
|
|
|
# Add -g here if you want debugger symbols included
|
1997-09-23 11:09:33 +00:00
|
|
|
CXXFLAGS = -O
|
1997-07-08 10:08:50 +00:00
|
|
|
|
|
|
|
# The search path for include files. Change only if necessary.
|
|
|
|
INC_PATH = -I/usr/local/include
|
|
|
|
|
|
|
|
# The search path for library files. Change only if necessary.
|
|
|
|
LIB_PATH = -L/usr/local/lib
|
|
|
|
|
|
|
|
# Libraries to be included. Change only if necessary.
|
|
|
|
LIBS =
|
|
|
|
|
|
|
|
# The library directory where MIME++ (libmimepp.a) will be installed.
|
|
|
|
LIB_DIR = /usr/local/lib
|
|
|
|
|
|
|
|
# The include directory where MIME++ include files should be installed.
|
|
|
|
# The include files will actually be copied to $(INC_DIR)/mimepp/.
|
|
|
|
INC_DIR = /usr/local/include
|
|
|
|
|
|
|
|
all: exampl01 exampl02 exampl03 exampl04 exampl05
|
|
|
|
|
1997-09-23 11:09:33 +00:00
|
|
|
exampl01 : libmimepp.a exampl01.o basicmsg.o
|
|
|
|
$(CXX) -o exampl01 exampl01.o basicmsg.o $(LIB_PATH) -lmimepp $(LIBS)
|
1997-07-08 10:08:50 +00:00
|
|
|
|
1997-09-23 11:09:33 +00:00
|
|
|
exampl02 : libmimepp.a exampl02.o basicmsg.o
|
|
|
|
$(CXX) -o exampl02 exampl02.o basicmsg.o $(LIB_PATH) -lmimepp $(LIBS)
|
1997-07-08 10:08:50 +00:00
|
|
|
|
1997-09-23 11:09:33 +00:00
|
|
|
exampl03 : libmimepp.a exampl03.o multipar.o basicmsg.o
|
|
|
|
$(CXX) -o exampl03 exampl03.o multipar.o basicmsg.o $(LIB_PATH) -lmimepp $(LIBS)
|
1997-07-08 10:08:50 +00:00
|
|
|
|
1997-09-23 11:09:33 +00:00
|
|
|
exampl04 : libmimepp.a exampl04.o multipar.o basicmsg.o
|
|
|
|
$(CXX) -o exampl04 exampl04.o multipar.o basicmsg.o $(LIB_PATH) -lmimepp $(LIBS)
|
1997-07-08 10:08:50 +00:00
|
|
|
|
1997-09-23 11:09:33 +00:00
|
|
|
exampl05 : libmimepp.a exampl05.o attach.o multipar.o basicmsg.o
|
|
|
|
$(CXX) -o exampl05 exampl05.o attach.o multipar.o basicmsg.o $(LIB_PATH) -lmimepp $(LIBS)
|
1997-07-08 10:08:50 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm *.o exampl0? *.out
|
|
|
|
|
1997-09-23 11:09:33 +00:00
|
|
|
.SUFFIXES: .cpp
|
1997-07-08 10:08:50 +00:00
|
|
|
|
1997-09-23 11:09:33 +00:00
|
|
|
.cpp.o:
|
1997-07-08 10:08:50 +00:00
|
|
|
$(CXX) -c $(CXXFLAGS) $< $(INC_PATH)
|