CXXFLAGS=-pthread -g -O0 -DDEBUG OPENSSL_LIBDIR=-L/home/carsten/openssl-0.9.8o INCDIRS=-I/home/carsten/Devel/actlib/include/ LIBS=$(OPENSSL_LIBDIR) -L/home/carsten/Devel/actlib/lib -lact -ldl -lcrypto -lpthread OBJS=engine_front.o engine_sct.o CardObject.o CardKey.o SlotList.o CertificateList.o SecOpGuard.o TARGET=libengine_securetoken.so TESTOBJS=test_engine.o TESTTARGET=test_engine TESTLIBS=$(OPENSSL_LIBDIR) -lcrypto -lssl -ldl -lpthread all: $(TARGET) test: $(TESTTARGET) clean: rm -f *.o $(TARGET) $(TESTTARGET) $(TARGET): $(OBJS) $(CXX) --shared -o $(TARGET) $(OBJS) $(LIBS) $(TESTTARGET): $(TESTOBJS) $(CXX) -o $(TESTTARGET) $(TESTOBJS) $(TESTLIBS) .cpp.o: $(CXX) -c $(CXXFLAGS) $(INCDIRS) $< .c.o: $(CC) -c $(CFLAGS) $(INCDIRS) $<