include ../Mgr/Makefile.h
 
all: $(LIB)libSysTools.a
clean:
	rm -f $(OBJ)ctimer.o $(OBJ)exceptions.o $(OBJ)pdlmgr.o $(OBJ)periodic.o $(OBJ)ppersist.o $(OBJ)psighand.o $(OBJ)timing.o
	rm $(LIB)libSysTools.a
$(LIB)libSysTools.a : $(OBJ)ctimer.o $(OBJ)exceptions.o $(OBJ)pdlmgr.o $(OBJ)periodic.o $(OBJ)ppersist.o $(OBJ)psighand.o $(OBJ)timing.o
	$(AR) $(ARFLAGS) $@ $?
ifeq ($(CXX),cxx)
	$(CXX) $? $(CPPFLAGS) $(CXXFLAGS) -L$(LIB) -lSysTools -lNTools -o $(OBJ)xx.x -Hf
endif 
 
$(OBJ)ctimer.o: ctimer.cc defs.h ctimer.h \
 $(INC)peida.h \
 $(INC)defs.h \
 $(INC)utils.h \
 $(INC)machine.h \
 $(INC)perrors.h \
 $(INC)exceptions.h \
 $(INC)peidainit.h \
 $(INC)fmath.h
$(OBJ)exceptions.o: exceptions.cc defs.h exceptions.h peidainit.h perrors.h
$(OBJ)pdlmgr.o: pdlmgr.cc pdlmgr.h defs.h
$(OBJ)periodic.o: periodic.cc defs.h periodic.h
$(OBJ)ppersist.o: ppersist.cc defs.h peidainit.h ppersist.h machine.h \
 perrors.h exceptions.h $(INC)pclassids.h \
 $(INC)dates.h \
 $(INC)exceptions.h
$(OBJ)psighand.o: psighand.cc psighand.h defs.h perrors.h exceptions.h \
 peidainit.h
$(OBJ)timing.o: timing.c
