46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# @(#$Id: Makefile,v 1.11 2006-03-30 13:00:56 dockes Exp $ (C) 2005 J.F.Dockes
|
|
depth = ..
|
|
include $(depth)/mk/sysconf
|
|
|
|
# Only test executables get build in here
|
|
PROGS = internfile unacpp textsplit rclconfig
|
|
|
|
all: $(BIGLIB) $(PROGS)
|
|
|
|
$(BIGLIB):
|
|
cd $(depth)/lib;$(MAKE)
|
|
|
|
UNACPP_OBJS= trunacpp.o $(BIGLIB)
|
|
unacpp : $(UNACPP_OBJS)
|
|
$(CXX) $(ALL_CXXFLAGS) -o unacpp $(UNACPP_OBJS) \
|
|
$(LIBICONV)
|
|
trunacpp.o : unacpp.cpp unacpp.h
|
|
$(CXX) $(ALL_CXXFLAGS) -DTEST_UNACPP -c -o trunacpp.o unacpp.cpp
|
|
|
|
TEXTSPLIT_OBJS= trtextsplit.o $(BIGLIB)
|
|
textsplit : $(TEXTSPLIT_OBJS)
|
|
$(CXX) $(ALL_CXXFLAGS) -o textsplit $(TEXTSPLIT_OBJS)
|
|
trtextsplit.o : textsplit.cpp
|
|
$(CXX) $(ALL_CXXFLAGS) -DTEST_TEXTSPLIT -c -o trtextsplit.o \
|
|
textsplit.cpp
|
|
|
|
INTERNFILE_OBJS= trinternfile.o $(BIGLIB) $(MIMELIB)
|
|
internfile : $(INTERNFILE_OBJS)
|
|
$(CXX) $(ALL_CXXFLAGS) -o internfile $(INTERNFILE_OBJS) \
|
|
$(LIBICONV) $(LIBSYS)
|
|
trinternfile.o : internfile.cpp
|
|
$(CXX) $(ALL_CXXFLAGS) -DTEST_INTERNFILE -c -o trinternfile.o \
|
|
internfile.cpp
|
|
|
|
RCLCONFIG_OBJS= trrclconfig.o $(BIGLIB) $(MIMELIB)
|
|
rclconfig : $(RCLCONFIG_OBJS)
|
|
$(CXX) $(ALL_CXXFLAGS) -o rclconfig $(RCLCONFIG_OBJS) \
|
|
$(LIBICONV) $(LIBSYS)
|
|
trrclconfig.o : rclconfig.cpp
|
|
$(CXX) $(ALL_CXXFLAGS) -DTEST_RCLCONFIG -c -o trrclconfig.o \
|
|
rclconfig.cpp
|
|
|
|
clean:
|
|
rm -f *.o $(PROGS)
|
|
|